/* Product image preview stays within the viewport, outside the site zoom root. */
#ylImageZoomModal .modal-dialog {
  width: min(1100px, calc(100vw - 1.5rem));
  max-width: min(1100px, calc(100vw - 1.5rem));
  height: calc(100vh - 1.5rem);
  height: calc(100dvh - 1.5rem);
  min-height: 0;
  margin: .75rem auto;
}
#ylImageZoomModal .modal-content {
  height: 100%;
  max-height: 100%;
  min-height: 0;
}
#ylImageZoomModal .modal-header,
#ylImageZoomModal .modal-footer {
  flex-shrink: 0;
}
#ylImageZoomModal .modal-title {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}
#ylImageZoomModal .btn-close {
  flex-shrink: 0;
}
#ylImageZoomModal .modal-body {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
#ylImageZoomModal .yl-zoom-stage {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
}
#ylImageZoomModal .yl-zoom-stage img {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Product actions on all screens; compact campaign and related products on mobile. */
.yl-product-tabs-wrap {
  min-width: 0;
  margin-top: 1.35rem;
}
.yl-product-tabs-scroll {
  min-width: 0;
  max-width: 100%;
  margin-bottom: 1rem;
  padding: 5px;
  border: 1px solid #e5eaf0;
  border-radius: var(--yl-theme-radius, 9px);
  background: #f6f8fa;
}
.yl-product-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 4px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.yl-product-tabs-nav .nav-item {
  display: flex;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
}
.yl-product-tabs-nav .yl-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: var(--yl-theme-radius, 9px);
  background: transparent;
  color: #586577;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
  transition: color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.yl-product-tabs-nav .yl-tab-btn > i {
  flex: 0 0 auto;
  font-size: 16px;
  line-height: 1;
  opacity: .8;
}
.yl-product-tabs-nav .yl-tab-btn:hover {
  background: #edf1f5;
  color: var(--yl-theme-primary, #0b5f88);
}
.yl-product-tabs-nav .yl-tab-btn.active {
  border-color: #e2e8f0;
  background: #fff;
  color: var(--yl-theme-primary, #0b5f88);
  box-shadow: 0 2px 4px rgba(15, 23, 42, .04), inset 0 -2px var(--yl-theme-primary, #0b5f88);
}
.yl-product-tabs-nav .yl-tab-btn.active > i {
  opacity: 1;
}
.yl-product-tabs-nav .yl-tab-btn:focus-visible {
  outline: 2px solid var(--yl-theme-primary, #0b5f88);
  outline-offset: -2px;
}
@media (max-width: 767.98px) {
  .yl-product-tabs-wrap {
    margin-top: 1rem;
  }
  .yl-product-tabs-scroll {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: #c5cfdc transparent;
  }
  .yl-product-tabs-nav {
    flex-wrap: nowrap;
    width: max-content;
    min-width: 100%;
  }
  .yl-product-tabs-nav .nav-item {
    flex: 0 0 auto;
    max-width: none;
  }
  .yl-product-tabs-nav .yl-tab-btn {
    min-height: 44px;
    padding: 10px 12px;
    gap: 6px;
    font-size: .8125rem;
    white-space: nowrap;
  }
}

/* Product installment information follows the checkout bank list layout. */
.yl-inst-single {
  border: 1px solid #e5e9f0;
  border-radius: var(--yl-theme-radius, 9px);
  padding: .75rem 1rem;
  background: #fff;
}
.yl-inst-single-row,
.yl-inst-single-left {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
}
.yl-inst-single-row {
  justify-content: space-between;
  flex-wrap: wrap;
}
.yl-inst-single-icon,
.yl-inst-option-icon {
  flex: 0 0 16px;
  width: 16px;
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1;
}
.yl-inst-single-title {
  color: #101828;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}
.yl-inst-single-meta {
  margin-top: .15rem;
  color: #667085;
  font-size: .875rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.yl-inst-single-amount {
  margin-left: auto;
  color: #101828;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.yl-inst-bank-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid #e5e9f0;
  border-top: 3px solid var(--yl-inst-accent, #dc2626);
  border-radius: var(--yl-theme-radius, 9px);
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
}
.yl-inst-bank-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .55rem;
  padding: .58rem .72rem;
  border-bottom: 1px solid #eef2f6;
}
.yl-inst-bank-head-copy,
.yl-inst-bank-copy {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}
.yl-inst-bank-name {
  color: #101828;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.3;
}
.yl-inst-bank-note {
  margin-top: .08rem;
  color: #667085;
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.yl-inst-bank-brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  min-width: 58px;
  max-width: 96px;
}
.yl-inst-bank-logo {
  display: block;
  max-width: 82px;
  max-height: 23px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.yl-inst-bank-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--yl-theme-radius, 9px);
  background: #f5f7fb;
  color: #344054;
  font-size: .8rem;
  font-weight: 800;
}
.yl-inst-bank-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-height: 54px;
  padding: .38rem .58rem;
  border-bottom: 1px solid #e5e9f0;
  background: #fff;
}
.yl-inst-bank-item:last-child {
  border-bottom: 0;
}
.yl-inst-bank-title {
  color: #101828;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}
.yl-inst-bank-meta {
  margin-top: .1rem;
  color: #6b7280;
  font-size: .71rem;
  line-height: 1.25;
}
.yl-inst-bank-amount-wrap {
  flex: 0 1 auto;
  min-width: 126px;
  max-width: 58%;
  text-align: right;
  line-height: 1.08;
  overflow-wrap: anywhere;
}
.yl-inst-bank-amount {
  color: #101828;
  font-size: .92rem;
  font-weight: 700;
}
.yl-inst-bank-per {
  margin-top: .1rem;
  color: #6b7280;
  font-size: .68rem;
  line-height: 1.2;
}
.yl-inst-bank-item-free {
  background: #fff7ed;
  border-bottom-color: #fdba74;
  box-shadow: inset 4px 0 0 #f97316;
}
.yl-inst-bank-item-free .yl-inst-bank-meta {
  color: #c2410c;
  font-weight: 700;
}
@media (max-width: 575.98px) {
  .yl-inst-single {
    padding: .65rem .58rem;
  }
  .yl-inst-single-title,
  .yl-inst-single-amount,
  .yl-inst-bank-title {
    font-size: .9rem;
  }
  .yl-inst-single-meta {
    font-size: .75rem;
  }
  .yl-inst-bank-amount-wrap {
    min-width: 112px;
  }
  .yl-inst-bank-amount {
    font-size: .86rem;
  }
  .yl-inst-bank-per {
    font-size: .64rem;
  }
}

@media (max-width: 359.98px) {
  .yl-inst-bank-item {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr) auto;
    gap: .2rem .5rem;
  }
  .yl-inst-bank-copy {
    display: contents;
  }
  .yl-inst-option-icon {
    grid-column: 1;
    grid-row: 1;
  }
  .yl-inst-bank-title {
    grid-column: 2;
    grid-row: 1;
  }
  .yl-inst-bank-meta {
    grid-column: 2 / -1;
    grid-row: 2;
    margin-top: 0;
  }
  .yl-inst-bank-amount-wrap {
    grid-column: 3;
    grid-row: 1;
    min-width: 0;
    max-width: 100%;
  }
}

.yl-product-action-tooltip {
  --bs-tooltip-bg: var(--yl-theme-primary, #0f172a);
  --bs-tooltip-color: #fff;
  --bs-tooltip-opacity: 1;
  z-index: 1080;
  pointer-events: none;
}
.yl-product-action-tooltip .tooltip-inner {
  max-width: 240px;
  padding: 7px 11px;
  border-radius: var(--yl-theme-radius, 9px);
  background: var(--yl-theme-primary, #0f172a);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  box-shadow: 0 5px 16px rgba(15, 23, 42, .18);
}
.yl-product-action-tooltip.bs-tooltip-top .tooltip-arrow::before,
.yl-product-action-tooltip[data-popper-placement^="top"] .tooltip-arrow::before { border-top-color: var(--yl-theme-primary, #0f172a); }
.yl-product-action-tooltip.bs-tooltip-bottom .tooltip-arrow::before,
.yl-product-action-tooltip[data-popper-placement^="bottom"] .tooltip-arrow::before { border-bottom-color: var(--yl-theme-primary, #0f172a); }
.yl-product-action-tooltip[data-popper-placement^="left"] .tooltip-arrow::before { border-left-color: var(--yl-theme-primary, #0f172a); }
.yl-product-action-tooltip[data-popper-placement^="right"] .tooltip-arrow::before { border-right-color: var(--yl-theme-primary, #0f172a); }

.yl-product-action-group .yl-product-action-icon {
  display: none;
}

@media all {
  #ylProductSecondaryActions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    min-width: 0;
    margin-top: 14px;
  }

  #ylProductSecondaryActions .yl-product-cta-row,
  #ylProductSecondaryActions .yl-interaction-cta-row,
  #ylProductSecondaryActions #ylProductAlertWrap,
  #ylProductSecondaryActions .yl-alert-actions {
    display: contents !important;
  }

  #ylProductSecondaryActions button.btn,
  #ylProductSecondaryActions #ylProductAlertWrap button.btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 1 44px;
    width: 44px !important;
    max-width: 44px;
    min-width: 0 !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    gap: 0 !important;
    border: 1px solid var(--yl-action-border, #e2e8f0) !important;
    border-radius: var(--yl-theme-radius, 9px) !important;
    background: var(--yl-action-bg, #fff) !important;
    color: var(--yl-action-color, #475569) !important;
    font-size: 0 !important;
    line-height: 1;
    box-shadow: none;
    text-overflow: clip;
  }

  #ylProductSecondaryActions button.btn i {
    display: inline-block;
    flex: 0 0 auto;
    margin: 0 !important;
    font-size: 18px !important;
    line-height: 1;
  }

  #ylProductSecondaryActions button.btn span {
    font-size: 0 !important;
  }

  #ylProductSecondaryActions button.btn.d-none,
  #ylProductSecondaryActions #ylProductAlertWrap button.btn.d-none {
    display: none !important;
  }

  #ylProductSecondaryActions button.btn:hover,
  #ylProductSecondaryActions #ylProductAlertWrap button.btn:hover {
    background: var(--yl-action-hover, #f1f5f9) !important;
  }

  #ylProductSecondaryActions #ylFavBtn {
    --yl-action-color: #e11d48;
    --yl-action-bg: #fff1f2;
    --yl-action-border: #fecdd3;
    --yl-action-hover: #ffe4e6;
  }

  #ylProductSecondaryActions #ylCompareBtn {
    --yl-action-color: #15803d;
    --yl-action-bg: #f0fdf4;
    --yl-action-border: #bbf7d0;
    --yl-action-hover: #dcfce7;
  }

  #ylProductSecondaryActions #ylShareEarnBtn {
    --yl-action-color: #7c3aed;
    --yl-action-bg: #f5f3ff;
    --yl-action-border: #ddd6fe;
    --yl-action-hover: #ede9fe;
  }

  #ylProductSecondaryActions [data-yl-offer-open] {
    --yl-action-color: #c2410c;
    --yl-action-bg: #fff7ed;
    --yl-action-border: #fed7aa;
    --yl-action-hover: #ffedd5;
  }

  #ylProductSecondaryActions [data-yl-interaction-open="question"] {
    --yl-action-color: #2563eb;
    --yl-action-bg: #eff6ff;
    --yl-action-border: #bfdbfe;
    --yl-action-hover: #dbeafe;
  }

  #ylProductSecondaryActions [data-yl-interaction-open="comment"] {
    --yl-action-color: #0f766e;
    --yl-action-bg: #f0fdfa;
    --yl-action-border: #99f6e4;
    --yl-action-hover: #ccfbf1;
  }

  #ylProductSecondaryActions #ylStockAlertBtn {
    --yl-action-color: #a16207;
    --yl-action-bg: #fefce8;
    --yl-action-border: #fef08a;
    --yl-action-hover: #fef9c3;
  }

  #ylProductSecondaryActions #ylPriceAlertBtn {
    --yl-action-color: #0369a1;
    --yl-action-bg: #f0f9ff;
    --yl-action-border: #bae6fd;
    --yl-action-hover: #e0f2fe;
  }

  #ylProductSecondaryActions button.is-on,
  #ylProductSecondaryActions #ylProductAlertWrap button.is-active {
    box-shadow: inset 0 0 0 1px currentColor;
  }

  #ylProductSecondaryActions button.btn:focus-visible {
    outline: 2px solid var(--yl-theme-primary, #334155);
    outline-offset: 2px;
  }

  #ylProductSecondaryActions #ylFavBtn.is-on {
    color: #e11d48 !important;
    background: #fff1f2 !important;
    border-color: #fecdd3 !important;
  }

  #ylProductSecondaryActions #ylCompareBtn.is-on {
    color: #15803d !important;
    background: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
  }

  #ylProductSecondaryActions #ylProductAlertWrap button.is-active {
    color: #0369a1 !important;
    background: #f0f9ff !important;
    border-color: #bae6fd !important;
  }
}

.yl-mobile-buy-bar,
.yl-mobile-buy-spacer {
  display: none;
}

@media (max-width: 767.98px) {
  #ylProductSecondaryActions {
    justify-content: space-between;
    gap: 2px;
  }

  #ylProductSecondaryActions button.btn,
  #ylProductSecondaryActions #ylProductAlertWrap button.btn {
    flex: 1 1 0;
    width: 0 !important;
  }

  .yl-mobile-buy-bar:not([hidden]) {
    position: fixed;
    inset: auto 0 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 72px;
    padding: 10px max(12px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    border-top: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 -6px 24px rgba(15, 23, 42, .08);
  }

  .yl-mobile-buy-bar__price {
    display: grid;
    gap: 3px;
    min-width: 0;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
  }

  .yl-mobile-buy-bar__price strong {
    font-size: clamp(14px, 4.4vw, 19px);
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .yl-mobile-buy-bar__price del {
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.2;
  }

  .yl-mobile-buy-bar__price del[hidden] {
    display: none;
  }

  .yl-mobile-buy-bar__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 0 0 48%;
    min-height: 46px;
    min-width: 0;
    padding: 9px 12px;
    border: 0;
    border-radius: var(--yl-theme-radius, 10px);
    background: var(--yl-theme-primary, #ef233c);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
  }

  .yl-mobile-buy-bar__button:disabled {
    opacity: .55;
  }

  .yl-mobile-buy-bar__button:focus-visible {
    outline: 3px solid #0f172a;
    outline-offset: 2px;
  }

  .yl-mobile-buy-bar.is-inquiry .yl-mobile-buy-bar__button {
    background: #15803d;
    font-size: 12px;
  }

  body.yl-mobile-buy-enabled .yl-mobile-buy-spacer {
    display: block;
    height: var(--yl-mobile-buy-height, calc(72px + env(safe-area-inset-bottom)));
  }

  body.yl-mobile-buy-visible #ylLiveSupportRoot {
    bottom: calc(var(--yl-mobile-buy-height, 72px) + 10px);
  }

  body.yl-mobile-buy-visible #ylBackToTopBtn {
    bottom: calc(var(--yl-mobile-buy-height, 72px) + 78px);
  }
}
@media (max-width: 575.98px) {
  #ylBulkQtyPanel > .d-flex {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px !important;
    padding: 10px 10px 4px;
    margin-bottom: 6px !important;
  }

  #ylBulkQtyPanel > .d-flex > .d-flex {
    display: grid !important;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 3px 6px !important;
    font-size: 12px !important;
    line-height: 1.25;
  }

  #ylBulkQtyPanel .yl-bulk-qty-icon {
    grid-row: 1 / 3;
    width: 22px;
    height: 22px;
    font-size: 13px;
  }

  #ylBulkQtyPanel .yl-bulk-qty-badge {
    grid-column: 2;
    justify-self: start;
    max-width: 100%;
    padding: 3px 6px;
    font-size: 9px;
    font-weight: 600;
    line-height: 1.2;
  }

  #ylBulkQtyPanel .yl-bulk-qty-total {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
  }

  #ylBulkQtyPanel .yl-bulk-qty-note {
    padding: 0 10px 8px;
    font-size: 11px;
    line-height: 1.4;
  }

  #ylBulkQtyPanel table {
    width: 100%;
    font-size: clamp(10px, 2.9vw, 12px);
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
  }

  #ylBulkQtyPanel th,
  #ylBulkQtyPanel td {
    padding: 7px 4px;
  }

  #ylBulkQtyPanel th {
    font-size: 10px;
    font-weight: 600;
    white-space: normal;
  }

  #ylBulkQtyPanel td {
    white-space: nowrap;
  }

  #ylBulkQtyPanel .yl-bulk-tier-row {
    height: 40px;
  }
}

@media (max-width: 767.98px) {
  .yl-related-products-section > .d-flex {
    flex-wrap: wrap;
    gap: 8px !important;
  }

  .yl-related-products-section > .d-flex > h3 {
    font-size: 18px;
  }

  .yl-related-products-section > .d-flex > .btn {
    font-size: 12px;
    padding: 5px 9px;
  }

  #ylRelatedOpv2Grid {
    min-width: 0;
    max-width: 100%;
  }

  #ylRelatedOpv2Grid .yl-related-row {
    margin-inline: 0;
  }

  #ylRelatedOpv2Grid .yl-opv2-title {
    margin: 10px 10px 0 !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    min-height: 2.7em !important;
    max-height: 2.7em !important;
    overflow-wrap: anywhere !important;
  }

  #ylRelatedOpv2Grid .yl-opv2-title::after {
    margin-top: 6px !important;
  }

  #ylRelatedOpv2Grid .yl-opv2-price-col {
    min-width: 0;
    margin: 6px 8px 0 !important;
    flex-wrap: wrap !important;
    gap: 4px 6px !important;
  }

  #ylRelatedOpv2Grid .yl-opv2-price-now {
    font-size: 15px !important;
    line-height: 1.2 !important;
    max-width: 100% !important;
  }

  #ylRelatedOpv2Grid .yl-opv2-price-old {
    font-size: 11px !important;
    line-height: 1.2 !important;
    max-width: 100% !important;
  }

  #ylRelatedOpv2Grid .yl-opv2-price-col .yl-opv2-fx {
    font-size: 10px !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
}
