/* Keep pricing labels inside each option as a full-width header. */
/* Fabric collections share the same header and selection treatment. */
:is(.product-detail-page, .checkout-page) .fabric-collection-grid .variant-option-btn { padding: 0; min-height: 70px; }
:is(.product-detail-page, .checkout-page) .fabric-collection-grid .variant-option-btn .option-button-badge { position: relative; inset: auto; width: 100%; max-width: none; padding: 5px 10px; margin: 0; transform: none; font-size: 11px; line-height: 1.3; }
:is(.product-detail-page, .checkout-page) .fabric-collection-grid .variant-option-btn .option-name { display: flex; justify-content: center; align-items: center; white-space: normal; overflow: visible; text-align: center; padding: 11px 30px; }
:is(.product-detail-page, .checkout-page) .product-config-card { padding: 16px 18px; border: 1px solid #e9e1d9; border-radius: 20px; background: #fffdfa; }
:is(.product-detail-page, .checkout-page) .product-config-card .product-section-head { align-items: center; gap: 12px; margin-bottom: 7px; }
:is(.product-detail-page, .checkout-page) .product-config-card .product-section-head .more { font-size: 12px; font-weight: 500; color: #80634e; text-underline-offset: 3px; }
:is(.product-detail-page, .checkout-page) .product-config-card .product-variant-help { margin: 0 0 5px; font-size: 13px; line-height: 1.45; color: #7c7068; }
:is(.product-detail-page, .checkout-page) .configuration-required { color: #be2940; font-weight: 700; }
:is(.product-detail-page, .checkout-page) .configuration-required-note { margin: 0 0 10px; font-size: 11px; color: #928176; }
:is(.product-detail-page, .checkout-page) .product-config-card .product-variant-card { --bs-gutter-y: 0; margin-top: 0; row-gap: 14px; }
:is(.product-detail-page, .checkout-page) .product-config-card .product-variant-card > .col-12 { margin-top: 0; }
:is(.product-detail-page, .checkout-page) .product-config-card .variant-field-label { display: block; margin-bottom: 7px; font-size: 11px; font-weight: 600; letter-spacing: .09em; color: #7f7065; }
:is(.product-detail-page, .checkout-page) .product-config-card #variantStaticInfo:not(.d-none) { margin-top: 0; padding: 9px 12px; border: 1px solid #ebe2d9; border-radius: 12px; background: #f7f3ee; font-size: 12px; line-height: 1.55; color: #75665b; }
:is(.product-detail-page, .checkout-page) .product-config-card #variantStaticInfo::before { content: 'Twój wybór'; display: block; margin-bottom: 5px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; color: #9b8370; }
:is(.product-detail-page, .checkout-page) .product-config-card #variantStaticInfo strong { font-weight: 600; color: #514237; }
:is(.product-detail-page, .checkout-page) .variant-option-btn {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 13px;
  height: auto;
  min-height: 70px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(67, 43, 31, .06);
  border: 0;
  background: transparent;
  transition: transform 240ms cubic-bezier(.2,.7,.3,1), box-shadow 240ms ease;
  -webkit-tap-highlight-color: transparent;
}
:is(.product-detail-page, .checkout-page) .variant-option-btn:hover,
:is(.product-detail-page, .checkout-page) .variant-option-btn.is-active { border: 0; background: transparent; }
:is(.product-detail-page, .checkout-page) .variant-option-btn .option-button-badge {
  position: static;
  inset: auto;
  order: -1;
  display: block;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  transform: none;
  margin: 0;
  padding: 5px 10px;
  border: 1px solid var(--option-header-border, #e1d4c7);
  border-radius: 13px 13px 0 0;
  box-shadow: none;
  animation: none;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease;
}
:is(.product-detail-page, .checkout-page) .variant-option-btn .option-name {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 30px;
  min-height: 46px;
  position: relative;
  text-align: center;
  line-height: 1.35;
  border: 1px solid #d5c5bb;
  border-top: 0;
  border-radius: 0 0 13px 13px;
  background: #fffcf9;
  transition: background-color 240ms ease, border-color 240ms ease, color 240ms ease, box-shadow 240ms ease;
}
:is(.product-detail-page, .checkout-page) .variant-option-btn .option-name::after {
  content: '';
  position: absolute;
  right: 11px;
  top: 50%;
  width: 14px;
  height: 14px;
  box-sizing: border-box;
  border: 1px solid #c5b5a9;
  border-radius: 50%;
  transform: translateY(-50%);
  transition: background-color 200ms ease, border-color 200ms ease;
}
:is(.product-detail-page, .checkout-page) .variant-option-btn.is-active .option-name::after {
  border-color: #886300;
  background: #886300;
  box-shadow: inset 0 0 0 3px #ffd34a;
}
:is(.product-detail-page, .checkout-page) .variant-option-btn:disabled,
:is(.product-detail-page, .checkout-page) .variant-option-btn.is-disabled { cursor: not-allowed; }
:is(.product-detail-page, .checkout-page) .variant-option-btn:hover .option-name { border-color: #d5b45c; background: #fff8e2; }
:is(.product-detail-page, .checkout-page) .variant-option-btn.is-active .option-name { border-color: #dca70a; background: linear-gradient(135deg, #ffd34a, #f2ba07); }
.product-detail-page .fabric-collection-grid .variant-option-btn:not(.is-active):hover .option-name { border-color: #c5b5a9; background: #fffcf9; }
:is(.product-detail-page, .checkout-page) .variant-option-btn .option-badge--included { --option-header-border: #c9dff5; background: #edf6ff; color: #3267b0; }
:is(.product-detail-page, .checkout-page) .variant-option-btn .option-badge--promo { --option-header-border: #a3d4bb; background: #e8f5ee; color: #2c7052; }
:is(.product-detail-page, .checkout-page) .variant-option-btn .option-badge--extra { --option-header-border: #e7b8c4; background: #fff0f3; color: #9d3048; }
:is(.product-detail-page, .checkout-page) .variant-option-btn .option-badge--promo,
:is(.product-detail-page, .checkout-page) .variant-option-btn .option-badge--extra {
  position: relative;
  overflow: visible;
  isolation: isolate;
  z-index: 1;
  padding-left: 28px;
  padding-right: 28px;
}
:is(.product-detail-page, .checkout-page) .variant-option-btn .option-badge--promo::before,
:is(.product-detail-page, .checkout-page) .variant-option-btn .option-badge--extra::before {
  position: absolute;
  right: 10px;
  top: calc(50% - 7px);
  z-index: 2;
  font-size: 10px;
  font-weight: 800;
  line-height: .75;
  white-space: pre;
  color: inherit;
  pointer-events: none;
  text-shadow: 0 1px 0 rgba(255,255,255,.7);
  animation: promo-arrows-down 900ms linear infinite;
}
:is(.product-detail-page, .checkout-page) .variant-option-btn .option-badge--promo::before,
:is(.product-detail-page, .checkout-page) .variant-option-btn .option-badge--extra::before { content: none; }
:is(.product-detail-page, .checkout-page) .variant-option-btn .product-price-ambient-arrows {
  position: absolute;
  inset: 0 0 -6px;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  pointer-events: none;
  color: inherit;
  z-index: -1;
}
:is(.product-detail-page, .checkout-page) .variant-option-btn .product-price-ambient-arrows {
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 7px, #000 calc(100% - 7px), transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 7px, #000 calc(100% - 7px), transparent);
}
:is(.product-detail-page, .checkout-page) .variant-option-btn .product-price-ambient-arrows > span {
  animation-name: option-arrows-fade-down;
  animation-timing-function: ease-in-out;
}
:is(.product-detail-page, .checkout-page) .variant-option-btn .option-badge--extra .product-price-ambient-arrows > span { animation-name: option-arrows-fade-up; }
@keyframes option-arrows-fade-down {
  0% { transform: translateY(-38px); opacity: 0; }
  28% { opacity: .12; }
  55% { opacity: .16; }
  78% { opacity: .10; }
  100% { transform: translateY(22px); opacity: 0; }
}
@keyframes option-arrows-fade-up {
  0% { transform: translateY(22px); opacity: 0; }
  28% { opacity: .12; }
  55% { opacity: .16; }
  78% { opacity: .10; }
  100% { transform: translateY(-38px); opacity: 0; }
}
:is(.product-detail-page, .checkout-page) .variant-option-btn .option-badge--promo::after,
:is(.product-detail-page, .checkout-page) .variant-option-btn .option-badge--extra::after {
  content: none;
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.5) 50%, transparent 75%);
  transform: translateX(-120%);
}
@media (hover: hover) and (pointer: fine) {
  :is(.product-detail-page, .checkout-page) .variant-option-btn:not(:disabled):not(.is-disabled):hover .option-badge--promo { background-color: #d9eee2; border-color: #84bf9f; }
  :is(.product-detail-page, .checkout-page) .variant-option-btn:not(:disabled):not(.is-disabled):hover .option-badge--extra { background-color: #fbe3e9; border-color: #d99bab; }
  :is(.product-detail-page, .checkout-page) .variant-option-btn:not(:disabled):not(.is-disabled):hover .option-badge--promo::after,
  :is(.product-detail-page, .checkout-page) .variant-option-btn:not(:disabled):not(.is-disabled):hover .option-badge--extra::after { animation: none; }
  :is(.product-detail-page, .checkout-page) .variant-option-btn:not(:disabled):not(.is-disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 20px rgba(80, 55, 35, .10);
  }
}
.product-detail-page .fabric-collection-grid .variant-option-btn.is-active:hover { transform: none; box-shadow: none; }
.product-detail-page .fabric-collection-grid .variant-option-btn .product-price-ambient-arrows > span { animation: none; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .product-detail-page:has(.fabric-collection-grid .variant-option-btn:hover) #productPromoLabel .product-price-ambient-arrows > span { animation: none; }
  .product-detail-page .fabric-collection-grid .variant-option-btn:not(.is-active) .option-badge--promo:hover .product-price-ambient-arrows > span { animation: option-arrows-fade-down var(--arrow-duration, 5s) ease-in-out var(--arrow-delay, 0s) infinite; }
  .product-detail-page .fabric-collection-grid .variant-option-btn:not(.is-active) .option-badge--extra:hover .product-price-ambient-arrows > span { animation: option-arrows-fade-up var(--arrow-duration, 5s) ease-in-out var(--arrow-delay, 0s) infinite; }
}
@keyframes option-header-sheen { to { transform: translateX(120%); } }
:is(.product-detail-page, .checkout-page) .variant-option-btn:not(:disabled):not(.is-disabled):active {
  transform: translateY(0) scale(.985);
  transition-duration: 100ms;
  box-shadow: 0 3px 8px rgba(80, 55, 35, .08);
}
:is(.product-detail-page, .checkout-page) .variant-option-btn:focus-visible {
  outline: 2px solid #9a734a;
  outline-offset: 4px;
}
@media (prefers-reduced-motion: reduce) {
  :is(.product-detail-page, .checkout-page) .variant-option-btn .option-badge--promo::before,
  :is(.product-detail-page, .checkout-page) .variant-option-btn .option-badge--extra::before { animation: none; }
  :is(.product-detail-page, .checkout-page) .variant-option-btn .option-badge--promo::after,
  :is(.product-detail-page, .checkout-page) .variant-option-btn .option-badge--extra::after { display: none; }
  :is(.product-detail-page, .checkout-page) .variant-option-btn,
  :is(.product-detail-page, .checkout-page) .variant-option-btn .option-button-badge,
  :is(.product-detail-page, .checkout-page) .variant-option-btn .option-name { transition: none; }
  :is(.product-detail-page, .checkout-page) .variant-option-btn:not(:disabled):not(.is-disabled):hover,
  :is(.product-detail-page, .checkout-page) .variant-option-btn:not(:disabled):not(.is-disabled):active { transform: none; }
}
@media (max-width: 575.98px) {
  :is(.product-detail-page, .checkout-page) .variant-option-btn .option-button-badge { padding: 5px 7px; font-size: 10px; }
  :is(.product-detail-page, .checkout-page) .variant-option-btn .option-badge--promo,
  :is(.product-detail-page, .checkout-page) .variant-option-btn .option-badge--extra { padding-left: 24px; padding-right: 24px; }
  :is(.product-detail-page, .checkout-page) .variant-option-btn .option-name { padding: 11px 27px; font-size: 13px; }
  :is(.product-detail-page, .checkout-page) .fabric-collection-grid .variant-option-btn .option-name {
    padding: 8px 17px 8px 4px;
    font-size: 11px;
    line-height: 1.2;
    letter-spacing: -.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  :is(.product-detail-page, .checkout-page) .fabric-collection-grid .variant-option-btn .option-name::after {
    right: 4px;
    width: 12px;
    height: 12px;
  }
}

:is(.product-detail-page, .checkout-page) .fabric-collection-grid .variant-option-btn .option-button-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 42px;
  padding: 4px 5px;
  line-height: 1.15;
}

:is(.product-detail-page, .checkout-page) .fabric-selector-head .fabric-selection-price {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 28px;
  margin: 0;
  padding: 4px 9px;
  border: 1px solid rgba(157, 48, 72, .18);
  border-radius: 999px;
  background: #fff0f3;
  color: #9d3048;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 575.98px) {
  :is(.product-detail-page, .checkout-page) .fabric-collection-grid .variant-option-btn .option-button-badge {
    min-height: 42px;
    padding: 4px 3px;
    font-size: 10px;
  }
}
