/**
 * Smokhane – WPC Frequently Bought Together accordion
 * Version: 1.2.0
 *
 * WPCode: CSS Snippet / Auto Insert / Site Wide Header
 * Do not add <style> tags.
 */

/* The source list is hidden only after JavaScript builds the replacement UI. */
.woobt-wrap.yk-woobt-ready {
  --yk-border: rgba(17, 24, 39, 0.10);
  --yk-muted: #6b7280;
  --yk-soft: #f8fafc;
  --yk-danger: #ef2b2d;
  --yk-success: #198754;
  border: 1px solid var(--yk-border);
  border-radius: 16px;
  padding: 12px;
  background: #fff;
}

.woobt-wrap.yk-woobt-ready .woobt-summary {
  margin-top: 12px;
}

.woobt-wrap.yk-woobt-ready .woobt-products > .woobt-item-text,
.woobt-wrap.yk-woobt-ready .woobt-products > .woobt-product.woobt-product-together {
  display: none !important;
}

/* Main product */
.woobt-wrap.yk-woobt-ready .woobt-product.woobt-product-this {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0 !important;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--yk-border);
}

.woobt-wrap.yk-woobt-ready .woobt-product-this .woobt-choose label,
.woobt-wrap.yk-woobt-ready .woobt-product-this .woobt-qty-num {
  display: none !important;
}

.woobt-wrap.yk-woobt-ready .woobt-product-this .woobt-thumb,
.woobt-wrap.yk-woobt-ready .woobt-product-this .woobt-thumb img {
  width: 46px !important;
  height: 46px !important;
}

.woobt-wrap.yk-woobt-ready .woobt-product-this .woobt-thumb img {
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

.woobt-wrap.yk-woobt-ready .woobt-product-this .woobt-title-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.woobt-wrap.yk-woobt-ready .woobt-product-this .woobt-title-inner span {
  font-size: 13px;
  line-height: 1.35;
}

.woobt-wrap.yk-woobt-ready .woobt-product-this .woobt-price {
  text-align: right;
  white-space: nowrap;
}

/* Sections */
.yk-woobt-ui {
  display: block;
}

.yk-woobt-section {
  margin: 10px 0 14px;
}

.yk-woobt-section:last-child {
  margin-bottom: 0;
}

.yk-woobt-section-title {
  margin: 0 0 10px;
  padding: 11px 13px;
  border: 1px dashed rgba(17, 24, 39, 0.16);
  border-radius: 13px;
  background: #fff;
  color: var(--yk-danger);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.yk-required-note {
  margin: -2px 0 10px;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(239, 43, 45, 0.07);
  color: #b42325;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.yk-required-note.is-complete {
  background: rgba(25, 135, 84, 0.09);
  color: var(--yk-success);
}

/* Accordion */
.yk-woobt-group {
  overflow: hidden;
  margin: 8px 0;
  border: 1px solid var(--yk-border);
  border-radius: 13px;
  background: #fff;
}

.yk-woobt-group-btn {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
}

.yk-woobt-group-btn:hover,
.yk-woobt-group-btn:focus-visible {
  background: var(--yk-soft);
}

.yk-woobt-group-btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -3px;
}

.yk-woobt-group-title {
  min-width: 0;
  overflow: hidden;
  color: #3f3f46;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yk-woobt-group-meta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--yk-muted);
  font-size: 12px;
  font-weight: 650;
}

.yk-woobt-pill {
  padding: 6px 9px;
  border: 1px solid var(--yk-border);
  border-radius: 999px;
  line-height: 1;
  white-space: nowrap;
}

.yk-woobt-chevron {
  display: inline-block;
  opacity: 0.75;
  transition: transform 180ms ease;
}

.yk-woobt-group.is-open .yk-woobt-chevron {
  transform: rotate(180deg);
}

.yk-woobt-group-body {
  padding: 8px 10px 10px;
  background: var(--yk-soft);
}

.yk-woobt-group-body[hidden] {
  display: none !important;
}

/* Variant rows */
.yk-woobt-row {
  display: grid;
  grid-template-columns: 20px 42px minmax(0, 1fr) minmax(90px, auto);
  gap: 10px;
  align-items: center;
  padding: 10px 7px;
  border-bottom: 1px solid var(--yk-border);
  border-radius: 10px;
}

.yk-woobt-row:last-child {
  border-bottom: 0;
}

.yk-woobt-row:not(.yk-row-oos):hover {
  background: #fff;
}

.yk-woobt-media,
.yk-woobt-media img,
.yk-woobt-image-placeholder {
  width: 42px !important;
  height: 42px !important;
}

.yk-woobt-media img,
.yk-woobt-image-placeholder {
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

.yk-woobt-image-placeholder {
  background: rgba(17, 24, 39, 0.06);
}

.yk-woobt-checkbox {
  width: 17px !important;
  height: 17px !important;
  margin: 0 !important;
  accent-color: currentColor;
}

.yk-woobt-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.yk-woobt-title-line {
  min-width: 0;
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.yk-woobt-product-link {
  min-width: 120px;
  max-width: 100%;
  overflow: hidden;
  color: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yk-woobt-product-link:hover {
  text-decoration: underline;
}

.yk-woobt-badges {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.yk-mg-badge,
.yk-stock {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border: 1px solid var(--yk-border);
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.yk-stock.oos {
  color: var(--yk-muted);
}

.yk-woobt-price {
  min-width: 0;
  text-align: right;
  white-space: nowrap;
}

.yk-woobt-price del,
.yk-woobt-price ins,
.yk-woobt-price .amount {
  font-size: 12px;
}

.yk-woobt-price ins {
  font-weight: 800;
  text-decoration: none;
}

.yk-row-oos {
  opacity: 0.48;
  pointer-events: none;
}

.yk-limit-disabled {
  opacity: 0.58;
}

/* Quantity stepper */
.yk-qty {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 2px;
  padding: 3px 5px;
  border: 1px solid var(--yk-border);
  border-radius: 999px;
  background: #fff;
}

.yk-qty.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.yk-qty button {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--yk-border);
  border-radius: 999px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
}

.yk-qty button:hover,
.yk-qty button:focus-visible {
  background: var(--yk-soft);
}

.yk-qty input {
  width: 30px;
  height: 24px;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: inherit;
  font-size: 13px;
  font-weight: 750;
  text-align: center;
  box-shadow: none;
}

.yk-qty input[type='number']::-webkit-inner-spin-button,
.yk-qty input[type='number']::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.yk-qty input[type='number'] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Campaign and stock feedback */
button.single_add_to_cart_button.yk-btn-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.yk-woobt-toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 99999;
  max-width: min(92vw, 460px);
  padding: 10px 13px;
  border-radius: 12px;
  background: rgba(20, 20, 20, 0.94);
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 160ms ease, transform 160ms ease;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.yk-woobt-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Tablet */
@media (max-width: 768px) {
  .yk-woobt-row {
    grid-template-columns: 20px 42px minmax(0, 1fr);
  }

  .yk-woobt-price {
    grid-column: 3;
    text-align: left;
  }
}

/* Mobile */
@media (max-width: 520px) {
  .woobt-wrap.yk-woobt-ready {
    padding: 10px;
    border-radius: 14px;
  }

  .yk-woobt-group-btn {
    min-height: 52px;
    padding: 10px;
  }

  .yk-woobt-group-title {
    white-space: normal;
  }

  .yk-woobt-pill {
    padding: 6px 7px;
  }

  .yk-woobt-group-body {
    padding: 6px 7px 8px;
  }

  .yk-woobt-row {
    grid-template-columns: 20px 38px minmax(0, 1fr);
    gap: 8px;
    padding: 10px 4px;
  }

  .yk-woobt-media,
  .yk-woobt-media img,
  .yk-woobt-image-placeholder {
    width: 38px !important;
    height: 38px !important;
  }

  .yk-woobt-title-line {
    flex-basis: 100%;
  }

  .yk-woobt-product-link {
    min-width: 0;
    white-space: normal;
  }

  .yk-woobt-price {
    grid-column: 3;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .yk-woobt-chevron,
  .yk-woobt-toast {
    transition: none;
  }
}
