@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700;800&family=Quicksand:wght@700&display=swap');

:root {
  --osu-primary: #FF7600;
  --osu-primary-soft: #FFF0E5;
  --osu-secondary: #2E7D32;
  --osu-secondary-soft: #EAF4EA;
  --osu-secondary-hover: #F4F8F4;
  --osu-secondary-border: #81B784;
  --osu-text: #333333;
  --osu-muted: #707070;
  --osu-border: #E2E2E2;
  --osu-danger: #C62828;
}

.osu-product-selector {
  width: 100%;
  font-family: 'Be Vietnam Pro', sans-serif;
  color: var(--osu-text);
  background: #fff;
  box-sizing: border-box;
}

.osu-product-selector *,
.osu-product-selector *::before,
.osu-product-selector *::after {
  box-sizing: border-box;
}

.osu-ps-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.osu-ps-head-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.osu-ps-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  line-height: 1;
}

.osu-ps-current-price {
  color: var(--osu-primary);
  font-size: clamp(24px, 3.3vw, 32px);
  font-weight: 700;
  line-height: 1.1;
}

.osu-ps-regular-price {
  color: #8A8A8A;
  font-size: 16px;
  text-decoration: line-through;
  white-space: nowrap;
}

.osu-ps-saving {
  color: var(--osu-secondary);
  font-size: 16px;
  white-space: nowrap;
}

.osu-ps-saving strong {
  font-weight: 700;
}

.osu-ps-title {
  font-family: 'Quicksand', sans-serif;
  margin: 6px 0 0;
  padding: 0;
  color: var(--osu-text);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0;
}

.osu-ps-copy-link {
  position: relative;
  flex: 0 0 42px;
  width: 42px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--osu-border);
  background: #fff;
  color: var(--osu-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.osu-ps-copy-link:hover {
  border-color: var(--osu-primary);
  background: var(--osu-primary-soft);
}

.osu-ps-copy-link:active {
  transform: scale(.96);
}

.osu-ps-copy-link svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.osu-ps-copy-tip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 7px);
  z-index: 10;
  padding: 6px 9px;
  border-radius: 7px;
  background: #333333;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  white-space: nowrap;
  transition: opacity .18s ease, transform .18s ease;
}

.osu-ps-copy-link.is-copied .osu-ps-copy-tip {
  opacity: 1;
  transform: translateY(0);
}

.osu-ps-form {
  margin: 0;
}

.osu-ps-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--osu-border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.osu-ps-option {
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  min-width: 0;
  min-height: 86px;
  padding: 9px 10px 8px;
  text-align: left;
  border: 0;
  border-right: 1px solid var(--osu-border);
  border-radius: 0;
  background: #FFF3DC;
  color: var(--osu-text);
  cursor: pointer;
  font: inherit;
  outline: none;
  transition: background .16s ease, box-shadow .16s ease;
}

.osu-ps-option:nth-child(2n) {
  border-right: 0;
}

.osu-ps-option:nth-child(n+3) {
  border-top: 1px solid var(--osu-border);
}

.osu-ps-option.is-active {
  z-index: 2;
  background: var(--osu-secondary-soft);
  box-shadow: inset 0 0 0 1.5px var(--osu-secondary);
}

.osu-ps-option:not(.is-disabled):hover {
  background: var(--osu-secondary-hover);
  box-shadow: inset 0 0 0 1px var(--osu-secondary-border);
}

.osu-ps-option.is-disabled {
  opacity: .48;
  cursor: not-allowed;
}

.osu-ps-discount {
  position: absolute;
  top: 0;
  right: 0;
  padding: 9px 8px 8px;
  border-radius: 0 0 0 12px;
  background: var(--osu-primary-soft);
  color: var(--osu-primary);
  font-size: 17px;
  line-height: 1;
  font-weight: 800;
}

.osu-ps-option-title {
  font-family: 'Quicksand', sans-serif;
  display: block;
  padding-right: 48px;
  color: var(--osu-secondary);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.osu-ps-option:not(.is-active) .osu-ps-option-title {
  color: var(--osu-text);
}

.osu-ps-option-price-line {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-top: 7px;
  min-width: 0;
  line-height: 1.15;
}

.osu-ps-option-price-line strong {
  color: var(--osu-primary);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.osu-ps-option-price-line small {
  min-width: 0;
  color: var(--osu-muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.osu-ps-option-desc {
  display: block;
  margin-top: 4px;
  min-width: 0;
  color: var(--osu-muted);
  font-size: 10px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.osu-ps-option-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  min-width: 0;
  color: var(--osu-muted);
  font-size: 11px;
  line-height: 1.25;
  white-space: nowrap;
}

.osu-ps-stock {
  display: inline-flex;
  align-items: center;
  padding: 2px 5px;
  border-radius: 3px;
  font-weight: 600;
}

.osu-ps-stock.is-stock {
  color: var(--osu-secondary);
  background: var(--osu-secondary-soft);
}

.osu-ps-stock.is-out {
  color: var(--osu-danger);
  background: #FDECEC;
}

.osu-ps-delivery {
  overflow: hidden;
  text-overflow: ellipsis;
}

.osu-ps-submit {
  width: 100% !important;
  min-height: 51px;
  margin: 12px 0 0 !important;
  padding: 11px 18px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--osu-primary) !important;
  color: #fff !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font: inherit !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  text-align: center;
  cursor: pointer;
  transition: filter .18s ease, transform .18s ease;
}

.osu-ps-submit:hover {
  filter: brightness(.96);
}

.osu-ps-submit:active {
  transform: translateY(1px);
}

.osu-ps-submit:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.osu-ps-submit .woocommerce-Price-amount,
.osu-ps-submit .woocommerce-Price-currencySymbol {
  color: inherit !important;
}

.osu-ps-benefits {
  margin-top: 10px;
  border-top: 1px solid transparent;
}

.osu-ps-benefit {
  min-height: 45px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 8px;
  color: var(--osu-text);
  text-decoration: none !important;
  border-bottom: 1px solid var(--osu-border);
}

.osu-ps-benefit:last-child {
  border-bottom: 0;
}

.osu-ps-benefit-icon,
.osu-ps-benefit-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #555555;
}

.osu-ps-benefit-icon svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.osu-ps-benefit-arrow {
  justify-content: flex-end;
}

.osu-ps-benefit-arrow svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.osu-ps-benefit-text {
  font-size: 12px!important;
  line-height: 1.25;
}

.osu-ps-hidden-attributes {
  display: none !important;
}

.osu-ps-notice {
  padding: 12px 14px;
  border: 1px solid var(--osu-border);
  border-radius: 10px;
  background: #F7F7F7;
  color: #555555;
  font-size: 14px;
}

.osu-product-selector .woocommerce-Price-currencySymbol {
  font-size: .78em;
  vertical-align: baseline;
}

.osu-product-selector .is-hidden {
  display: none !important;
}

@media (max-width: 767px) {
  .osu-ps-head {
    margin-bottom: 12px;
  }

  .osu-ps-current-price {
    font-size: 29px;
  }

  .osu-ps-regular-price,
  .osu-ps-saving {
    font-size: 15px;
  }

  .osu-ps-title {
    font-size: 20px;
  }

  .osu-ps-option {
    min-height: 86px;
    padding: 9px 9px 8px;
  }

  .osu-ps-option-title {
    font-size: 17px;
  }

  .osu-ps-discount {
    font-size: 16px;
  }

  .osu-ps-submit {
    min-height: 50px;
    font-size: 13px !important;
  }

 
}

@media (max-width: 420px) {
  .osu-ps-price-row {
    gap: 6px;
  }

  .osu-ps-current-price {
    font-size: 27px;
  }

  .osu-ps-copy-link {
    flex-basis: 40px;
    width: 40px;
    height: 34px;
  }

  .osu-ps-option {
    padding-left: 8px;
    padding-right: 7px;
  }

  .osu-ps-option-title {
    font-size: 16px;
    padding-right: 42px;
  }

  .osu-ps-option-price-line {
    display: block;
  }

  .osu-ps-option-price-line small {
    display: block;
    margin-top: 2px;
    font-size: 10.5px;
  }

  .osu-ps-option-meta {
    gap: 3px;
    font-size: 10px;
  }

  .osu-ps-stock {
    padding-left: 4px;
    padding-right: 4px;
  }

  .osu-ps-benefit {
    grid-template-columns: 30px minmax(0, 1fr) 18px;
  }


}


/* OSU standalone product gallery */
.osu-product-gallery {
  display: grid;
  font-family: 'Be Vietnam Pro', sans-serif;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 18px;
  width: 100%;
  align-items: start;
}

.osu-gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.osu-gallery-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 88px;
  height: 88px;
  padding: 3px;
  border: 2px solid transparent;
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}

.osu-gallery-thumb.is-active {
  border-color: var(--osu-primary);
}

.osu-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

.osu-gallery-stage {
  position: relative;
  min-width: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.osu-gallery-main-link {
  display: block;
  width: 100%;
}

.osu-gallery-main-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 760px;
  object-fit: contain;
  background: #fff;
}

.osu-gallery-discount {
  position: absolute;
  font-family: 'Quicksand', sans-serif;
  top: 0;
  left: 0;
  z-index: 5;
  min-width: 88px;
  padding: 11px 14px;
  border-radius: 0 0 10px 0;
  background: var(--osu-primary);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
}

.osu-gallery-discount.is-hidden { display: none; }

.osu-gallery-empty {
  padding: 24px;
  border: 1px dashed var(--osu-border);
  border-radius: 10px;
  text-align: center;
  color: var(--osu-muted);
}

@media (max-width: 767px) {
  .osu-product-gallery {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .osu-gallery-thumbs {
    order: 2;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .osu-gallery-thumb {
    flex: 0 0 70px;
    width: 70px;
    height: 70px;
  }

  .osu-gallery-stage { order: 1; }
  .osu-gallery-discount {
    min-width: 72px;
    font-size: 17px;
    padding: 9px 12px;
  }
}
