:root {
  --os-border-color: #ccc;
  --os-error-color: #ff0000;
  --os-background-light-color: #f1f1f1;
}
.os_wrapper {
  max-width: 100% !important;
  position: relative;
}
.os_profile_tabs {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  border-bottom: 1px solid var(--os-border-color);
}

.os_profile_tabs a {
  display: block;
  padding: 10px 15px;
  margin: 0px 5px;
  text-decoration: none;
  color: #000;
  border: 1px solid var(--os-border-color);
  margin-bottom: -1px;
  background: var(--os-background-light-color);
  transition: background 0.1s ease-in-out;
}

.os_profile_tabs a.os_active {
  background: #fff;
  border-bottom: 1px solid #fff;
}

.os_profile_tabs a.os_disable_tab {
  pointer-events: none;
  opacity: 0.4;
}

.os_profile_tab_content {
  padding: 30px 15px;
  background: #fff;
  border: 1px solid var(--os-border-color);
  border-top: 0;
  display: grid;
}

.os_profile_tab_content > div {
  grid-row-start: 1;
  grid-column-start: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 2s ease-in-out;
  z-index: -100;
  position: relative;
}

.os_profile_tab_content > div.os_disable_tab {
  pointer-events: none !important;
  opacity: 0.4 !important;
}

.os_profile_tab_content > div.os_active {
  opacity: 1;
  pointer-events: auto;
  z-index: 100;
}

.os_profile_tab_content > div.os_active:after {
  content: "Saving...";
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  background: #fff;
  color: #000000;
  text-align: center;
  padding-top: 80px;
  box-sizing: border-box;
  animation: os_saving 2s normal forwards;
  -webkit-animation: os_saving 2s normal forwards;
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
}

.os_profile_tab_content > div:first-child.os_active:after {
  animation: os_saving 0s normal forwards;
}

@keyframes os_saving {
  0% {
    opacity: 0;
  }
  2% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.os_profile_buttons {
  display: flex;
  position: absolute;
  z-index: 1000;
  margin-top: 20px;
  right: 20px;
  gap: 5px;
}

.os_profile_buttons button[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.os_field {
  margin-bottom: 15px;
  display: grid;
  grid-template-columns: 1fr 3fr 2fr;
  grid-gap: 15px;
}

.os_instructions {
  position: relative;
}

.os_instructions .os_instructions_panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid var(--os-border-color);
  border-radius: 4px;
  padding: 20px;
  z-index: 1000;
  font-size: 0.8em;
  color: #999;
}

.os_instructions.os-open .os_instructions_panel {
  display: block;
}

.os_instructions .os_instructions_toggle {
  width: 20px;
  line-height: 20px;
  background: var(--os-border-color) ccc;
  color: transparent;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  text-align: center;
}

.os_instructions .os_instructions_toggle:after {
  color: #000000;
  content: "i";
}

.os_instructions.os-open .os_instructions_toggle:after {
  content: "x";
}

.os_profile_title {
  margin: 0 0 15px 0;
}

.os_profile_intro {
  margin: 0 0 40px 0;
}

.os-map-view {
  max-width: 100% !important;
}

.os-map-view #os_map_large {
  width: 100%;
  height: 60vh;
  margin-top: 20px;
}

.os-payment-types,
.os-payment-methods {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.os-payment-type label,
.os-payment-method label {
  display: block;
  background: var(--os-background-light-color);
  border: 2px solid var(--os-background-light-color);
  padding: 20px;
  transition: all 0.1s ease-in-out;
  cursor: pointer;
}

.os-payment-type.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.os-payment-type label h4,
.os-payment-method label h4 {
  margin: 0 0 10px 0;
}

.os-payment-type label h4 span {
  float: right;
}

.os-payment-type input[type="radio"],
.os-payment-method input[type="radio"] {
  display: none;
}

.os-payment-type input[type="radio"]:checked + label,
.os-payment-method input[type="radio"]:checked + label {
  border-color: var(--os-border-color);
  background: #ffffff;
}

.os_field {
  margin-bottom: 15px;
  display: grid;
  grid-template-columns: 1fr 3fr;
  grid-gap: 15px;
}

.os_instructions {
  font-size: 0.8em;
  color: #999;
}

.os_field .os_instructions {
  grid-column: 2;
}

.os_field.os_error {
  position: relative;
  scroll-margin-top: 40px;
}

.os_field.os_error input,
.os_field.os_error select,
.os_field.os_error textarea {
  border: 1px solid var(--os-error-color);
}

.os_field.os_error label {
  color: var(--os-error-color);
}

.os_password_error {
  color: var(--os-error-color);
}

.os_box {
  padding: 20px;
  background: var(--os-background-light-color);
  border: 1px solid var(--os-border-color);
  margin-bottom: 20px;
}

.os_login {
  max-width: 300px;
  margin: 0 auto;
}

.os_login input,
.os_login select {
  box-sizing: border-box;
  width: 100%;
  margin-bottom: 20px;
}

.os_signup {
  max-width: 600px;
  margin: 0 auto;
}
.os_signup input,
.os_signup select {
  box-sizing: border-box;
  max-width: 60%;
  width: 100%;
}
.os_signup label {
  display: block;
}

.os_signup_field {
  margin-bottom: 20px;
}

.os-logout-wrapper {
  display: flex;
  justify-content: flex-end;
  margin: 20px 0;
}

.os_msg {
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--os-border-color);
}

.os-filter {
  position: relative;
  background: var(--os-background-light-color);
}

.os-filter-label {
  padding: 5px 10px;
  cursor: pointer;
}

.os-filter-label:after {
  content: "▼";
  float: right;
}

.os-filter.os-open .os-filter-label:after {
  content: "▲";
}

.os-filter-holder {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  width: 100%;
  transform: scaleY(0);
  transform-origin: top;
  transition: all 0.1s ease-in-out;
  background: var(--os-background-light-color);
}

.os-filter.os-open .os-filter-holder {
  opacity: 1;
  pointer-events: auto;
  transform: scaleY(1);
  transform-origin: top;
  z-index: 9000;
}

.os-filter-holder input[type="checkbox"] {
  display: none;
}

.os-filter-holder label {
  display: block;
  padding: 5px 10px;
  cursor: pointer;
  transition: all 0.1s ease-in-out;
  border-bottom: 1px solid var(--os-border-color);
}

.os-filter-holder input[type="checkbox"]:checked + label {
  color: #fff;
  background: #000;
}

.os-filter-actions {
  padding: 5px 10px;
}

.os-filter-actions a {
  float: right;
  font-size: 0.6em;
}

.os-transaction-table {
  width: 100%;
  border-collapse: collapse;
}

.os-transaction-table th {
  text-align: left;
  width: 20%;
}
.os-transaction-table th,
.os-transaction-table td {
  padding: 5px 10px;
}

.os_preview img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  object-position: center;
}

.os_tandc_label {
  display: block;
  margin: 40px 0;
}

.os_tandc_label.os_error,
.os_tandc_label.os_error a {
  color: var(--os-error-color);
}

.os-payment-box {
  background: var(--os-background-light-color);
  padding: 20px 20px 40px 20px;
}

/* mobile media query */
@media (max-width: 768px) {
  .os_profile_tabs {
    display: block;
    border-bottom: 0;
  }
  .os_profile_tab_content {
    border-top: 1px solid var(--os-border-color);
    padding: 15px;
  }
  .os_profile_tab_content > div {
    grid-template-columns: 1fr;
  }
  .os_profile_tab_content > div.os_active {
    grid-template-columns: 1fr;
  }
  .os_profile_buttons {
    position: static;
    margin-top: 20px;
    margin-bottom: 20px;
  }
  .os_field {
    display: block;
    margin-bottom: 30px;
  }
  .os_field label {
    display: block;
  }
  .os_field input:not([type="checkbox"], [type="radio"]),
  .os_field select,
  .os_field textarea {
    width: 100%;
    box-sizing: border-box;
  }
  .os_radio {
    margin: 10px;
  }
  .os_radio label {
    display: inline-block;
  }
  .os_map_grid {
    grid-template-columns: 1fr !important;
  }
  #os_map {
    width: 100%;
    height: 300px;
  }
  .os_gallery {
    grid-template-columns: 1fr !important;
  }
}

/* Template */

.os-studio-wrapper {
  width: 100%;
  max-width: 100% !important;
}

.os-studio-single {
  padding: 100px 0;
}

.os-studio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 20px;
}

.os-studio-box a {
  text-decoration: none;
}

.os-studio-box img {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
  object-position: center;
}

.os-studio-meta {
  font-size: 0.8em;
  text-transform: uppercase;
}

.os-studio-header {
  display: grid;
  grid-template-columns: 8fr 1fr;
}

.os-studio-profile-image img {
  border-radius: 50%;
  width: 150px;
  height: auto;
}

.os-tab-content {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 100px;
}

.os-label {
  font-weight: bold;
}

.os-studio-half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 20px;
}

.os-studio-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  grid-gap: 20px;
}

.os-studio-gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
  object-position: center;
}

.os-facilities {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  grid-gap: 20px;
}

.os-facilities img {
  width: 50px;
  height: auto;
}

@media (max-width: 768px) {
  .os-studio-half {
    grid-template-columns: 1fr;
  }

  .os-studio-header {
    grid-template-columns: 1fr;
  }

  .os-studio-header > div:last-child {
    order: -1;
  }

  .os-studio-grid {
    grid-template-columns: 1fr;
  }
}
