/* ===========================
   SECO COSMETICS - CHECKOUT
   Cart & Checkout styles

   NOTE: Universal form utilities (.seco-input, .seco-select, etc.)
   are defined in custom.css for project-wide reusability
   =========================== */

/* FIX: body { overflow-x: hidden } in styles.css forces overflow-y: auto on body,
   making body the scroll container instead of the viewport. This breaks position:sticky
   on any descendant. overflow-x: clip prevents horizontal overflow WITHOUT creating
   a scroll container, so position:sticky works correctly.
   Scoped to checkout pages only via :has() to avoid side effects. */
body:has(.checkout-main) {
   overflow-x: clip;
}

/* ===========================
   CHECKOUT HEADER
   =========================== */
/* last edited: klaudiusz@ovh-dpakula 2026-02-25 — v+PATCH: checkout steps clickable + scroll-margin-top */
.checkout-header {
   background: var(--color-bg);
   border-bottom: 1px solid var(--color-border);
   padding: var(--space-md) 0;
}

.checkout-header .container {
   display: flex;
   align-items: center;
   justify-content: space-between;
}

.checkout-header__logo {
   font-family: var(--font-base);
   font-size: 1.125rem;
   font-weight: var(--fw-bold);
   letter-spacing: 0.1em;
   color: var(--color-text);
   text-decoration: none;
}

/* Steps */
.checkout-header__steps {
   display: flex;
   align-items: center;
   gap: var(--space-xl);
}

.checkout-step {
   display: flex;
   align-items: center;
   gap: var(--space-sm);
   color: var(--color-text-muted);
   cursor: pointer;
   transition: opacity 0.15s ease;
}

.checkout-step:hover {
   opacity: 0.75;
}

.checkout-step.active {
   color: var(--color-text);
}

.checkout-step.active .checkout-step__num {
   background: var(--color-text);
   color: var(--color-text-inverse);
}

.checkout-step.completed .checkout-step__num {
   background: #4CAF50;
   color: var(--color-text-inverse);
}

.checkout-step__num {
   width: 28px;
   height: 28px;
   display: flex;
   align-items: center;
   justify-content: center;
   background: var(--color-bg-alt);
   border-radius: 50%;
   font-size: 0.75rem;
   font-weight: var(--fw-bold);
}

.checkout-step__label {
   font-size: 0.8125rem;
   font-weight: var(--fw-medium);
}

.checkout-header__secure {
   display: flex;
   align-items: center;
   gap: var(--space-xs);
   font-size: 0.75rem;
   color: var(--color-text-muted);
   text-decoration: none;
}

.checkout-header__secure i {
   color: #4CAF50;
}

/* ===========================
   CHECKOUT LAYOUT
   =========================== */
.checkout-main {
   padding: var(--space-xl) 0 var(--space-3xl);
   background: var(--color-bg);
}

.checkout-layout {
   display: grid;
   grid-template-columns: 1fr 380px;
   gap: var(--space-xl);
   align-items: start;
}

/* Right column must stretch to left-column height so position:sticky works.
   align-items:start makes each item only as tall as its content — sticky then
   has no room to scroll within its parent. align-self:stretch fixes this. */
.checkout-summary {
   align-self: stretch;
}

/* ===========================
   CHECKOUT SECTIONS
   =========================== */
.checkout-section {
   background: var(--color-bg);
   border: 1px solid var(--color-border);
   padding: var(--space-lg);
   margin-bottom: var(--space-lg);
   scroll-margin-top: 72px; /* offset for sticky checkout header */
}

.checkout-section__title {
   display: flex;
   align-items: center;
   gap: var(--space-md);
   font-size: 1.125rem;
   font-weight: var(--fw-bold);
   color: var(--color-text);
   margin: 0 0 var(--space-lg);
}

.checkout-section__num {
   width: 32px;
   height: 32px;
   display: flex;
   align-items: center;
   justify-content: center;
   background: var(--color-bg-dark);
   color: var(--color-text-inverse);
   border-radius: 50%;
   font-size: 0.875rem;
}

.cart-count {
   font-size: 0.875rem;
   font-weight: var(--fw-medium);
   color: var(--color-text-muted);
}

/* Subsection */
.checkout-subsection {
   margin-bottom: var(--space-xl);
}

.checkout-subsection:last-child {
   margin-bottom: 0;
}

.checkout-subsection__title {
   font-size: 0.875rem;
   font-weight: var(--fw-semibold);
   color: var(--color-text);
   margin: 0 0 var(--space-md);
   text-transform: uppercase;
   letter-spacing: 0.05em;
}

/* ===========================
   CART ITEMS
   =========================== */
.cart-items {
   display: flex;
   flex-direction: column;
   gap: var(--space-md);
   margin-bottom: var(--space-lg);
}

.cart-item {
   display: grid;
   grid-template-columns: 80px 1fr auto auto 40px;
   gap: var(--space-md);
   align-items: center;
   padding: var(--space-md);
   background: var(--color-bg-alt);
   border-radius: var(--radius-md);
}

.cart-item__image {
   width: 80px;
   height: 80px;
   background: var(--color-bg);
   border-radius: var(--radius-sm);
   overflow: hidden;
}

.cart-item__image img {
   width: 100%;
   height: 100%;
   object-fit: cover;
}

.cart-item__details {
   display: flex;
   flex-direction: column;
   gap: 4px;
}

.cart-item__name {
   font-size: var(--fs-small);
   font-weight: var(--fw-semibold);
   color: var(--color-text);
   margin: 0;
}

.cart-item__meta {
   font-size: 0.75rem;
   color: var(--color-text-muted);
   margin: 0;
}

.cart-item__points {
   font-size: 0.6875rem;
   color: var(--color-accent);
   font-weight: var(--fw-medium);
}

/* Quantity */
.cart-item__qty {
   display: flex;
   align-items: center;
   border: 1px solid var(--color-border);
   border-radius: var(--radius-sm);
   background: var(--color-bg);
}

.qty-btn {
   width: 32px;
   height: 32px;
   display: flex;
   align-items: center;
   justify-content: center;
   background: transparent;
   border: none;
   font-size: 1rem;
   color: var(--color-text);
   cursor: pointer;
}

.qty-btn:hover {
   background: var(--color-bg-alt);
}

.qty-input {
   width: 40px;
   height: 32px;
   border: none;
   text-align: center;
   font-family: var(--font-base);
   font-size: var(--fs-small);
   font-weight: var(--fw-semibold);
   -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
   -webkit-appearance: none;
   margin: 0;
}

/* Price */
.cart-item__price {
   text-align: right;
}

.cart-item__price-current {
   display: block;
   font-size: var(--fs-body);
   font-weight: var(--fw-bold);
   color: var(--color-text);
}

.cart-item__price-unit {
   font-size: 0.6875rem;
   color: var(--color-text-muted);
}

/* Remove */
.cart-item__remove {
   width: 32px;
   height: 32px;
   display: flex;
   align-items: center;
   justify-content: center;
   background: transparent;
   border: none;
   color: var(--color-text-muted);
   cursor: pointer;
   transition: var(--transition-base);
}

.cart-item__remove:hover {
   color: var(--color-accent);
}

/* ===========================
   EMPTY CART STATE (AJAX)
   =========================== */
.cart-empty {
   text-align: center;
   padding: 3rem 1rem;
   color: #666;
   font-size: 1rem;
   font-family: 'Montserrat', sans-serif;
}

/* ===========================
   PROMO CODE
   =========================== */
.cart-promo {
   padding-top: var(--space-md);
   border-top: 1px solid var(--color-border);
}

.cart-promo__input {
   display: flex;
   gap: var(--space-sm);
}

.cart-promo__input input {
   flex: 1;
   padding: var(--space-sm) var(--space-md);
   border: 1px solid var(--color-border);
   border-radius: var(--radius-sm);
   font-family: var(--font-base);
   font-size: var(--fs-small);
}

.cart-promo__input button {
   padding: var(--space-sm) var(--space-lg);
   background: var(--color-bg-dark);
   border: none;
   border-radius: var(--radius-sm);
   color: var(--color-text-inverse);
   font-family: var(--font-base);
   font-size: var(--fs-small);
   font-weight: var(--fw-semibold);
   cursor: pointer;
   transition: var(--transition-base);
}

.cart-promo__input button:hover {
   background: var(--color-accent);
}

/* ===========================
   CHECKOUT FORM
   =========================== */
.checkout-form {
   display: flex;
   flex-direction: column;
   gap: var(--space-md);
}

.checkout-form .form-group {
   display: flex;
   flex-direction: column;
   gap: var(--space-xs);
}

.checkout-form label {
   font-size: 0.8125rem;
   font-weight: var(--fw-medium);
   color: var(--color-text);
}

/* Checkout form inherits from universal utilities */
.checkout-form input,
.checkout-form select,
.checkout-form textarea {
   padding: var(--space-md);
   background: var(--color-bg);
   border: 1px solid var(--color-border);
   border-radius: var(--radius-sm);
   font-family: var(--font-base);
   font-size: var(--fs-small);
   width: 100%;
   transition: border-color 0.2s ease;
}

.checkout-form input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus {
   outline: none;
   border-color: var(--color-text);
}

.form-row-2 {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: var(--space-md);
}

/* ===========================
   DELIVERY OPTIONS
   =========================== */
.delivery-options {
   display: flex;
   flex-direction: column;
   gap: var(--space-sm);
}

.delivery-option {
   cursor: pointer;
}

.delivery-option input {
   display: none;
}

.delivery-option__content {
   display: flex;
   align-items: center;
   flex-wrap: wrap;
   gap: var(--space-md);
   padding: var(--space-md);
   background: var(--color-bg-alt);
   border: 2px solid transparent;
   border-radius: var(--radius-md);
   transition: var(--transition-base);
}

.delivery-option input:checked + .delivery-option__content {
   border-color: var(--color-text);
   background: var(--color-bg);
}

.delivery-option__icon {
   /* width: 48px; */
   /* height: 48px; */
   display: flex;
   align-items: center;
   justify-content: center;
   background: var(--color-bg);
   border-radius: var(--radius-sm);
   font-size: 1.25rem;
   color: var(--color-text);
}

.delivery-option__icon img {
   height: 24px;
   background-color: #fff;
}

.delivery-option__lower-desc {
   flex-basis: 100%;
   font-size: var(--fs-small);
   color: var(--color-text-muted);
   padding-top: var(--space-xs);
   border-top: 1px solid var(--color-border);
}

.delivery-option__lower-desc strong { font-weight: var(--fw-semibold); }
.delivery-option__lower-desc small { font-size: 0.85em; }
.delivery-option__lower-desc ul { margin: var(--space-xs) 0 0 var(--space-sm); padding: 0; }
.delivery-option__lower-desc li { list-style: disc; }

.delivery-option input:checked + .delivery-option__content .delivery-option__icon {
   background: var(--color-bg-dark);
   color: var(--color-text-inverse);
}

.delivery-option__info {
   flex: 1;
}

.delivery-option__info strong {
   display: block;
   font-size: var(--fs-small);
   font-weight: var(--fw-semibold);
}

.delivery-option__info span {
   font-size: 0.75rem;
   color: var(--color-text-muted);
}

.delivery-option__price {
   font-size: var(--fs-body);
   font-weight: var(--fw-bold);
   color: var(--color-text);
}

/* ===========================
   PAYMENT OPTIONS
   =========================== */
.payment-options {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: var(--space-sm);
}

.payment-option {
   cursor: pointer;
}

.payment-option input {
   display: none;
}

.payment-option__content {
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: var(--space-sm);
   padding: var(--space-md);
   background: var(--color-bg-alt);
   border: 2px solid transparent;
   border-radius: var(--radius-md);
   transition: var(--transition-base);
   text-align: center;
}

.payment-option input:checked + .payment-option__content {
   border-color: var(--color-text);
   background: var(--color-bg);
}

.payment-option__icon {
   height: 32px;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 1.25rem;
   font-weight: var(--fw-bold);
   color: var(--color-text);
}

.payment-option__content span {
   font-size: 0.75rem;
   color: var(--color-text-muted);
}

/* ===========================
   CHECKOUT SUMMARY
   =========================== */
.checkout-summary__sticky {
   position: sticky;
   top: var(--space-lg);
   background: var(--color-bg);
   border: 1px solid var(--color-border);
   padding: var(--space-lg);
}

.checkout-summary__title {
   font-size: 1.125rem;
   font-weight: var(--fw-bold);
   color: var(--color-text);
   margin: 0 0 var(--space-lg);
   padding-bottom: var(--space-md);
   border-bottom: 1px solid var(--color-border);
}

.checkout-summary__row {
   display: flex;
   justify-content: space-between;
   padding: var(--space-sm) 0;
   font-size: var(--fs-small);
   color: var(--color-text);
}

.checkout-summary__row--discount span:last-child {
   color: #4CAF50;
}

.checkout-summary__total {
   display: flex;
   justify-content: space-between;
   padding: var(--space-md) 0;
   margin-top: var(--space-sm);
   border-top: 2px solid var(--color-border);
   font-size: 1.25rem;
   font-weight: var(--fw-bold);
   color: var(--color-text);
}

.checkout-summary__points {
   display: flex;
   align-items: center;
   gap: var(--space-sm);
   padding: var(--space-sm) var(--space-md);
   background: rgba(227, 70, 54, 0.1);
   border-radius: var(--radius-sm);
   margin: var(--space-md) 0;
   font-size: 0.8125rem;
   color: var(--color-accent);
}

.checkout-summary__points i {
   font-size: 1rem;
}

.checkout-summary__btn {
   width: 100%;
   padding: var(--space-md);
   background: var(--color-accent);
   border: none;
   border-radius: var(--radius-pill);
   color: var(--color-text-inverse);
   font-family: var(--font-base);
   font-size: var(--fs-body);
   font-weight: var(--fw-bold);
   text-transform: uppercase;
   letter-spacing: 0.05em;
   cursor: pointer;
   transition: var(--transition-base);
}

.checkout-summary__btn:hover {
   background: var(--color-accent-dark);
}

.checkout-summary__btn:disabled,
.checkout-summary__btn.disabled {
   background: #ccc;
   color: #666;
   cursor: not-allowed;
   opacity: 0.6;
}

.checkout-summary__btn:disabled:hover,
.checkout-summary__btn.disabled:hover {
   background: #ccc;
}

.checkout-summary__btn-message {
   display: block;
   margin-top: 0.5rem;
   font-size: 0.75rem;
   color: var(--color-text-muted);
   text-align: center;
   line-height: 1.4;
}

.checkout-summary__terms {
   margin-top: var(--space-md);
}

.checkout-summary__terms .checkbox-label {
   font-size: 0.75rem;
   color: var(--color-text-muted);
   align-items: flex-start;
}

.checkout-summary__terms a {
   color: var(--color-accent);
   text-decoration: none;
}

.checkout-summary__secure {
   display: flex;
   align-items: center;
   justify-content: center;
   gap: var(--space-sm);
   margin-top: var(--space-lg);
   padding-top: var(--space-md);
   border-top: 1px solid var(--color-border);
   font-size: 0.75rem;
   color: var(--color-text-muted);
}

.checkout-summary__secure i {
   color: #4CAF50;
}

.checkout-summary__payments {
   display: flex;
   align-items: center;
   justify-content: center;
   gap: var(--space-md);
   margin-top: var(--space-md);
}

.checkout-summary__payments img {
   height: 24px;
   opacity: 0.5;
}

.checkout-summary__imoje {
   text-align: center;
   margin-top: var(--space-sm);
}
.checkout-summary__imoje img {
   width: 100%;
}

/* Checkbox from auth */
.checkbox-label {
   display: flex;
   align-items: center;
   gap: var(--space-sm);
   font-size: 0.8125rem;
   color: var(--color-text);
   cursor: pointer;
}

.checkbox-label input {
   display: none;
}

.checkbox-label .checkmark {
   width: 18px;
   height: 18px;
   min-width: 18px;
   border: 2px solid var(--color-border);
   border-radius: 4px;
   display: flex;
   align-items: center;
   justify-content: center;
   transition: var(--transition-base);
}

.checkbox-label input:checked + .checkmark {
   background: var(--color-text);
   border-color: var(--color-text);
}

.checkbox-label input:checked + .checkmark::after {
   content: '\f00c';
   font-family: 'Font Awesome 6 Free';
   font-weight: 900;
   font-size: 0.625rem;
   color: var(--color-text-inverse);
}

/* ===========================
   ORDER FOLLOW-UP (po potwierdzeniu zamówienia)
   =========================== */
.order-followup {
   max-width: 900px;
   margin: 0 auto var(--space-xl);
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: var(--space-lg);
}

.order-followup__points {
   display: flex;
   align-items: flex-start;
   gap: var(--space-md);
   padding: var(--space-lg);
   background: rgba(227, 70, 54, 0.06);
   border: 1px solid rgba(227, 70, 54, 0.2);
}

.order-followup__points-icon {
   font-size: 1.5rem;
   color: #d4af37;
   flex-shrink: 0;
   margin-top: 2px;
}

.order-followup__points-body {
   display: flex;
   flex-direction: column;
   gap: 2px;
}

.order-followup__points-body strong {
   font-size: var(--fs-small);
   font-weight: var(--fw-bold);
   color: var(--color-accent);
}

.order-followup__points-body span {
   font-size: var(--fs-small);
   color: var(--color-text);
}

.order-followup__points-sub {
   display: block;
   font-size: 0.6875rem;
   color: var(--color-text-muted);
   margin-top: 2px;
}

.order-followup__panel {
   display: flex;
   flex-direction: column;
   justify-content: center;
   gap: var(--space-md);
   padding: var(--space-lg);
   border: 1px solid var(--color-border);
   background: var(--color-bg-alt);
}

.order-followup__panel p {
   font-size: var(--fs-small);
   color: var(--color-text-muted);
   margin: 0;
   line-height: 1.6;
}

@media (max-width: 767px) {
   .order-followup {
      grid-template-columns: 1fr;
   }
}

/* ===========================
   ORDER CONFIRMATION
   =========================== */
.order-confirmation {
   max-width: 600px;
   margin: 0 auto;
   text-align: center;
   padding: var(--space-3xl) var(--space-lg);
}

.order-confirmation__icon {
   width: 80px;
   height: 80px;
   display: flex;
   align-items: center;
   justify-content: center;
   background: #4CAF50;
   border-radius: 50%;
   margin: 0 auto var(--space-xl);
   font-size: 2rem;
   color: var(--color-text-inverse);
}

.order-confirmation__title {
   font-size: 1.75rem;
   font-weight: var(--fw-bold);
   color: var(--color-text);
   margin: 0 0 var(--space-md);
}

.order-confirmation__text {
   font-size: var(--fs-body);
   color: var(--color-text-muted);
   margin: 0 0 var(--space-xl);
}

.order-confirmation__number {
   display: inline-block;
   padding: var(--space-md) var(--space-xl);
   background: var(--color-bg-alt);
   border-radius: var(--radius-md);
   font-size: 1.125rem;
   font-weight: var(--fw-bold);
   color: var(--color-text);
   margin-bottom: var(--space-xl);
}

.order-confirmation__actions {
   display: flex;
   gap: var(--space-md);
   justify-content: center;
}

.order-confirmation__btn {
   padding: var(--space-md) var(--space-xl);
   border-radius: var(--radius-pill);
   font-family: var(--font-base);
   font-size: var(--fs-small);
   font-weight: var(--fw-semibold);
   text-transform: uppercase;
   letter-spacing: 0.05em;
   text-decoration: none;
   transition: var(--transition-base);
}

.order-confirmation__btn--primary {
   background: var(--color-bg-dark);
   color: var(--color-text-inverse);
}

.order-confirmation__btn--primary:hover {
   background: var(--color-accent);
}

.order-confirmation__btn--secondary {
   background: transparent;
   border: 2px solid var(--color-bg-dark);
   color: var(--color-text);
}

.order-confirmation__btn--secondary:hover {
   background: var(--color-bg-dark);
   color: var(--color-text-inverse);
}

/* ===========================
   ORDER DETAILS
   =========================== */
.order-details {
   max-width: 900px;
   margin: 0 auto;
}

.order-details__grid {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: var(--space-lg);
   margin-bottom: var(--space-xl);
}

.order-details__section {
   background: var(--color-bg);
   border: 1px solid var(--color-border);
   padding: var(--space-lg);
}

.order-details__products {
   grid-column: 1 / -1;
}

.order-details__title {
   font-size: 0.875rem;
   font-weight: var(--fw-bold);
   text-transform: uppercase;
   letter-spacing: 0.05em;
   color: var(--color-text);
   margin: 0 0 var(--space-md);
}

/* APro order_info HTML (raw <ol> injected from AProOrder::processData) */
.order-info-html {
   font-size: var(--fs-small);
   color: var(--color-text);
}

.order-info-html ol {
   margin: var(--space-sm) 0 var(--space-md);
   padding-left: var(--space-lg);
}

.order-info-html li {
   margin-bottom: var(--space-xs);
   line-height: 1.5;
}

.order-info-html a {
   color: var(--color-text);
   text-decoration: underline;
}

.order-info-html a:hover {
   color: var(--color-primary, #c00);
}

.order-info-html p {
   margin: var(--space-sm) 0 0;
   border-top: 1px solid var(--color-border);
   padding-top: var(--space-sm);
   line-height: 1.7;
}

.order-info-html .product-attrs {
   font-size: 0.75rem;
   color: var(--color-text-muted);
   margin: 2px 0 0 var(--space-sm);
   padding-left: var(--space-md);
}

/* Products list */
.order-products-list {
   display: flex;
   flex-direction: column;
   gap: var(--space-sm);
}

.order-product {
   display: grid;
   grid-template-columns: 60px 1fr auto auto;
   gap: var(--space-md);
   align-items: center;
   padding: var(--space-sm);
   background: var(--color-bg-alt);
   border-radius: var(--radius-sm);
}

.order-product__image {
   width: 60px;
   height: 60px;
   border-radius: var(--radius-sm);
   overflow: hidden;
}

.order-product__image img {
   width: 100%;
   height: 100%;
   object-fit: cover;
}

.order-product__info h3 {
   font-size: var(--fs-small);
   font-weight: var(--fw-semibold);
   margin: 0;
}

.order-product__info p {
   font-size: 0.75rem;
   color: var(--color-text-muted);
   margin: 0;
}

.order-product__qty {
   font-size: var(--fs-small);
   color: var(--color-text-muted);
}

.order-product__price {
   font-size: var(--fs-small);
   font-weight: var(--fw-bold);
}

/* Summary box */
.order-summary-box {
   background: var(--color-bg-alt);
   padding: var(--space-md);
   border-radius: var(--radius-md);
}

.order-summary-row {
   display: flex;
   justify-content: space-between;
   padding: var(--space-xs) 0;
   font-size: var(--fs-small);
}

.order-summary-row--total {
   margin-top: var(--space-sm);
   padding-top: var(--space-sm);
   border-top: 2px solid var(--color-border);
   font-size: 1.125rem;
   font-weight: var(--fw-bold);
}

.order-summary-points {
   display: flex;
   align-items: center;
   gap: var(--space-sm);
   margin-top: var(--space-md);
   padding-top: var(--space-md);
   border-top: 1px solid var(--color-border);
   font-size: 0.8125rem;
   color: var(--color-accent);
}

/* Address box */
.order-address-box p {
   font-size: var(--fs-small);
   line-height: 1.6;
   margin: 0;
}

/* Delivery box */
.order-delivery-box {
   display: flex;
   align-items: center;
   gap: var(--space-md);
}

.order-delivery-icon {
   width: 48px;
   height: 48px;
   display: flex;
   align-items: center;
   justify-content: center;
   background: var(--color-bg-alt);
   border-radius: var(--radius-sm);
   font-size: 1.25rem;
}

.order-delivery-info strong {
   display: block;
   font-size: var(--fs-small);
}

.order-delivery-info span {
   font-size: 0.75rem;
   color: var(--color-text-muted);
}

/* Payment box */
.order-payment-box {
   display: flex;
   align-items: center;
   gap: var(--space-md);
}

.order-payment-icon {
   width: 48px;
   height: 48px;
   display: flex;
   align-items: center;
   justify-content: center;
   background: var(--color-bg-alt);
   border-radius: var(--radius-sm);
   font-size: 0.875rem;
   font-weight: var(--fw-bold);
}

.order-payment-info strong {
   display: block;
   font-size: var(--fs-small);
}

.order-payment-status {
   font-size: 0.75rem;
   font-weight: var(--fw-semibold);
}

.order-payment-status--paid {
   color: #4CAF50;
}

.order-payment-status--pending {
   color: #FF9800;
}

.order-payment-status--cod {
   color: #2196F3;
}

/* Payment polling — spinner widget (shown while verifying PayU IPN) */
.order-payment-polling {
   display: flex;
   align-items: center;
   gap: 6px;
   margin-top: 5px;
}

.order-payment-polling__spinner {
   width: 11px;
   height: 11px;
   border: 2px solid #e0e0e0;
   border-top-color: #FF9800;
   border-radius: 50%;
   animation: payment-polling-spin 0.8s linear infinite;
   flex-shrink: 0;
}

@keyframes payment-polling-spin {
   to { transform: rotate(360deg); }
}

.order-payment-polling__text {
   font-size: 0.7rem;
   color: #999;
}

.order-payment-polling__timeout {
   font-size: 0.7rem;
   color: #bbb;
}

.order-payment-polling__timeout a {
   color: #999;
   text-decoration: underline;
}

/* Actions */
.order-details__actions {
   display: flex;
   justify-content: center;
   gap: var(--space-md);
   margin-bottom: var(--space-xl);
}

/* ===========================
   ORDER THANK-YOU REDESIGN (v1.6.0)
   =========================== */

/* Payment central — pod numerem zamówienia */
.order-payment-central {
   max-width: 480px;
   margin: 0 auto var(--space-xl);
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: var(--space-xs);
   padding: var(--space-xl) var(--space-xl) var(--space-lg);
   background: var(--color-bg-alt);
   border: 1px solid var(--color-border);
   text-align: center;
}

.order-payment-central__icon {
   width: 44px;
   height: 44px;
   display: flex;
   align-items: center;
   justify-content: center;
   background: var(--color-bg);
   border: 1px solid var(--color-border);
   border-radius: 50%;
   font-size: 1rem;
   color: var(--color-text-muted);
   margin-bottom: var(--space-xs);
}

.order-payment-central__method {
   font-size: var(--fs-small);
   font-weight: var(--fw-semibold);
   color: var(--color-text);
}

.order-payment-central__amount {
   font-size: 1.75rem;
   font-weight: var(--fw-bold);
   color: var(--color-text);
   line-height: 1.1;
}

.order-payment-central__status {
   font-size: 0.8125rem;
   font-weight: var(--fw-semibold);
   padding: 3px 10px;
   border-radius: var(--radius-pill);
}

.order-payment-central__status--paid {
   color: #2e7d32;
   background: rgba(76, 175, 80, 0.12);
}

.order-payment-central__status--pending {
   color: #e65100;
   background: rgba(255, 152, 0, 0.12);
}

.order-payment-central__retry {
   margin-top: var(--space-sm);
}

/* 2-column grid — adres+dostawa | punkty SECO */
.order-details__cols {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: var(--space-lg);
   margin-bottom: var(--space-lg);
}

.order-details__col--left .order-details__section {
   height: 100%;
}

/* Separator między adresem a dostawą w lewej kolumnie */
.order-delivery-box--mt {
   margin-top: var(--space-lg);
   padding-top: var(--space-lg);
   border-top: 1px solid var(--color-border);
}

/* Premium points card */
.order-points-card {
   background: var(--color-bg-dark);
   color: var(--color-text-inverse);
   padding: var(--space-xl);
   height: 100%;
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   text-align: center;
   gap: var(--space-xs);
}

.order-points-card__stars {
   font-size: 1.25rem;
   color: #d4af37;
   letter-spacing: 4px;
   margin-bottom: var(--space-xs);
}

.order-points-card__number {
   font-size: 3rem;
   font-weight: var(--fw-bold);
   color: #d4af37;
   line-height: 1;
}

.order-points-card__label {
   font-size: 1rem;
   font-weight: var(--fw-semibold);
   color: var(--color-text-inverse);
   text-transform: uppercase;
   letter-spacing: 0.08em;
}

.order-points-card__sub {
   font-size: 0.75rem;
   color: rgba(255,255,255,0.55);
   margin: var(--space-sm) 0 var(--space-md);
   line-height: 1.5;
}

.order-points-card__link {
   font-size: 0.8125rem;
   color: rgba(255,255,255,0.8);
   text-decoration: none;
   border-bottom: 1px solid rgba(255,255,255,0.25);
   padding-bottom: 1px;
   transition: color 0.2s, border-color 0.2s;
}

.order-points-card__link:hover {
   color: #d4af37;
   border-color: #d4af37;
}

/* Full-width login CTA */
.order-login-cta {
   margin-bottom: var(--space-lg);
}

.order-login-cta__btn {
   display: flex;
   align-items: center;
   justify-content: center;
   gap: var(--space-md);
   width: 100%;
   padding: var(--space-lg) var(--space-xl);
   background: var(--color-accent);
   color: var(--color-text-inverse);
   font-size: var(--fs-body);
   font-weight: var(--fw-semibold);
   text-decoration: none;
   transition: background 0.2s;
}

.order-login-cta__btn:hover {
   background: #c0392b;
}

.order-login-cta__btn i {
   font-size: 0.875rem;
   transition: transform 0.2s;
}

.order-login-cta__btn:hover i {
   transform: translateX(4px);
}

/* Products accordion */
.order-products-accordion {
   background: var(--color-bg);
   border: 1px solid var(--color-border);
   margin-bottom: var(--space-lg);
}

.order-products-accordion__summary {
   display: flex;
   align-items: center;
   justify-content: space-between;
   padding: var(--space-md) var(--space-lg);
   cursor: pointer;
   font-size: 0.875rem;
   font-weight: var(--fw-bold);
   text-transform: uppercase;
   letter-spacing: 0.05em;
   color: var(--color-text);
   list-style: none;
   user-select: none;
}

.order-products-accordion__summary::-webkit-details-marker {
   display: none;
}

.order-products-accordion__summary:hover {
   background: var(--color-bg-alt);
}

.order-products-accordion__icon {
   font-size: 0.75rem;
   color: var(--color-text-muted);
   transition: transform 0.2s;
}

details[open] .order-products-accordion__icon {
   transform: rotate(180deg);
}

.order-products-accordion__content {
   padding: 0 var(--space-lg) var(--space-lg);
   border-top: 1px solid var(--color-border);
}

/* Mobile — stack columns vertically */
@media (max-width: 767px) {
   .order-details__cols {
      grid-template-columns: 1fr;
   }

   .order-points-card {
      min-height: 200px;
   }

   .order-payment-central {
      padding: var(--space-lg) var(--space-md);
   }

   .order-payment-central__amount {
      font-size: 1.5rem;
   }
}

/* Timeline */
.order-timeline {
   background: var(--color-bg);
   border: 1px solid var(--color-border);
   padding: var(--space-lg);
   margin-bottom: var(--space-xl);
}

.timeline {
   position: relative;
   padding-left: var(--space-xl);
}

.timeline::before {
   content: '';
   position: absolute;
   left: 8px;
   top: 0;
   bottom: 0;
   width: 2px;
   background: var(--color-border);
}

.timeline-item {
   position: relative;
   padding-bottom: var(--space-lg);
}

.timeline-item:last-child {
   padding-bottom: 0;
}

.timeline-marker {
   position: absolute;
   left: calc(-1 * var(--space-xl) + 1px);
   top: 0;
   width: 16px;
   height: 16px;
   background: var(--color-bg);
   border: 2px solid var(--color-border);
   border-radius: 50%;
}

.timeline-item--completed .timeline-marker {
   background: #4CAF50;
   border-color: #4CAF50;
}

.timeline-item--completed .timeline-marker::after {
   content: '\f00c';
   font-family: 'Font Awesome 6 Free';
   font-weight: 900;
   font-size: 0.5rem;
   color: var(--color-text-inverse);
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
}

.timeline-item--active .timeline-marker {
   background: var(--color-accent);
   border-color: var(--color-accent);
   animation: pulse 2s infinite;
}

/* COD — płatność przy odbiorze (niebieski marker) */
.timeline-item--cod .timeline-marker {
   background: #2196F3;
   border-color: #2196F3;
}

@keyframes pulse {
   0%, 100% { box-shadow: 0 0 0 0 rgba(227, 70, 54, 0.4); }
   50% { box-shadow: 0 0 0 8px rgba(227, 70, 54, 0); }
}

.timeline-content strong {
   display: block;
   font-size: var(--fs-small);
   font-weight: var(--fw-semibold);
}

.timeline-content span {
   font-size: 0.75rem;
   color: var(--color-text-muted);
}

/* Checkout footer */
.checkout-footer {
   background: var(--color-bg-alt);
   padding: var(--space-lg) 0;
   margin-top: var(--space-xl);
}

.checkout-footer .container {
   display: flex;
   justify-content: space-between;
   align-items: center;
}

.checkout-footer p {
   font-size: 0.75rem;
   color: var(--color-text-muted);
   margin: 0;
}

.checkout-footer__links {
   display: flex;
   gap: var(--space-lg);
}

.checkout-footer__links a {
   font-size: 0.75rem;
   color: var(--color-text-muted);
   text-decoration: none;
}

.checkout-footer__links a:hover {
   color: var(--color-text);
}

/* ===========================
   RESPONSIVE - TABLET
   =========================== */
@media (max-width: 1024px) {
   .checkout-layout {
      grid-template-columns: 1fr 320px;
   }

   .payment-options {
      grid-template-columns: repeat(2, 1fr);
   }
}

/* ===========================
   RESPONSIVE - MOBILE
   =========================== */
@media (max-width: 767px) {
   .checkout-header .container {
      flex-wrap: wrap;
      gap: var(--space-md);
   }

   .checkout-header__logo {
      order: 1;
   }

   .checkout-header__secure {
      order: 2;
   }

   .checkout-header__steps {
      order: 3;
      width: 100%;
      justify-content: center;
      gap: var(--space-md);
   }

   .checkout-step__label {
      display: none;
   }

   .checkout-layout {
      grid-template-columns: 1fr;
   }

   .checkout-summary {
      order: -1;
   }

   .checkout-summary__sticky {
      position: static;
   }

   .checkout-section {
      padding: var(--space-md);
   }

   .cart-item {
      grid-template-columns: 60px 1fr;
      gap: var(--space-sm);
   }

   .cart-item__image {
      width: 60px;
      height: 60px;
   }

   .cart-item__details {
      grid-column: 2;
   }

   .cart-item__qty {
      grid-column: 1 / -1;
      justify-self: start;
   }

   .cart-item__price {
      grid-column: 1 / -1;
      text-align: left;
   }

   .cart-item__remove {
      position: absolute;
      top: var(--space-sm);
      right: var(--space-sm);
   }

   .cart-item {
      position: relative;
   }

   .form-row-2 {
      grid-template-columns: 1fr;
   }

   .delivery-option__content {
      flex-wrap: wrap;
   }

   .delivery-option__info {
      flex: 1 1 calc(100% - 100px);
   }

   .delivery-option__price {
      width: 100%;
      text-align: right;
   }

   .payment-options {
      grid-template-columns: repeat(2, 1fr);
   }

   .order-confirmation__actions {
      flex-direction: column;
   }

   .order-details__grid {
      grid-template-columns: 1fr;
   }

   .order-product {
      grid-template-columns: 50px 1fr;
      gap: var(--space-sm);
   }

   .order-product__qty,
   .order-product__price {
      grid-column: 2;
   }

   .order-details__actions {
      flex-direction: column;
   }

   .checkout-footer .container {
      flex-direction: column;
      gap: var(--space-md);
      text-align: center;
   }
}

/* ===========================
   LOADING STATES
   =========================== */
.cart-item.cart-loading {
   opacity: 0.5;
   pointer-events: none;
   position: relative;
}

.cart-item.cart-loading::after {
   content: '';
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   width: 24px;
   height: 24px;
   border: 3px solid var(--color-border);
   border-top-color: var(--color-text);
   border-radius: 50%;
   animation: spin 0.8s linear infinite;
}

@keyframes spin {
   to {
      transform: translate(-50%, -50%) rotate(360deg);
   }
}

.cart-item__qty button:disabled,
.cart-item__remove:disabled {
   opacity: 0.5;
   cursor: not-allowed;
}

/* Hidden payment options (filtered by delivery method) */
.payment-option--hidden {
   display: none !important;
}

/* Loading states */
.checkout-summary--loading,
.payment-options--loading {
   position: relative;
   opacity: 0.6;
   pointer-events: none;
}

.checkout-summary--loading::after,
.payment-options--loading::after {
   content: '';
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   width: 32px;
   height: 32px;
   border: 3px solid var(--color-border);
   border-top-color: var(--color-text);
   border-radius: 50%;
   animation: spin 0.8s linear infinite;
   z-index: 10;
}

/* No payments message */
.payment-options__no-methods {
   text-align: center;
   padding: 2rem;
   background: #fff3cd;
   border: 1px solid #c19102;
   border-radius: 0;
   margin-top: 1rem;
}

.payment-options__no-methods i {
   font-size: 2.5rem;
   color: #ff9800;
   margin-bottom: 1rem;
}

.payment-options__no-methods p {
   margin: 0.5rem 0;
   font-size: 0.95rem;
}

.payment-options__no-methods p:first-of-type {
   font-weight: 600;
   color: #333;
}

.payment-options__no-methods .text-muted {
   color: #666;
   font-size: 0.9rem;
}

/* ====================================
   SAVED ADDRESSES (Address Cards)
   ==================================== */

/* Address cards grid */
.saved-addresses {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
   gap: 1rem;
   margin-bottom: 2rem;
}

/* Address card */
.address-card {
   background: #fff;
   border: 2px solid #e5e5e5;
   border-radius: 8px;
   padding: 1.5rem;
   cursor: pointer;
   transition: all 0.2s ease;
   position: relative;
   display: flex;
   flex-direction: column;
}

.address-card:hover {
   border-color: #333;
   box-shadow: 0 2px 8px rgba(0,0,0,0.1);
   transform: translateY(-2px);
}

/* Selected state */
.address-card--selected {
   border-color: #E53935;
   background: #fff5f5;
}

.address-card--selected::before {
   content: '\f00c';
   font-family: 'Font Awesome 6 Free';
   font-weight: 900;
   position: absolute;
   top: 1rem;
   right: 1rem;
   color: #E53935;
   font-size: 1.2rem;
}

/* Address card content */
.address-card__content {
   flex: 1;
}

.address-card__name {
   display: block;
   font-size: 1.1rem;
   font-weight: 600;
   margin-bottom: 0.5rem;
   color: #333;
   line-height: 1.3;
}

.address-card__company,
.address-card__vat {
   font-size: 0.9rem;
   color: #666;
   margin-bottom: 0.25rem;
   font-weight: 500;
}

.address-card__company {
   font-style: italic;
}

.address-card__vat {
   color: #444;
   font-family: monospace;
   font-size: 0.85rem;
}

.address-card__address {
   font-size: 0.95rem;
   color: #333;
   margin: 0.75rem 0;
   line-height: 1.6;
}

.address-card__phone {
   font-size: 0.9rem;
   color: #666;
   margin-top: 0.5rem;
}

.address-card__phone strong {
   color: #333;
}

/* Address card actions */
.address-card__actions {
   margin-top: 1rem;
   padding-top: 1rem;
   border-top: 1px solid #e5e5e5;
}

.address-card__edit {
   background: none;
   border: none;
   color: #E53935;
   cursor: pointer;
   font-size: 0.9rem;
   padding: 0;
   font-weight: 500;
   transition: opacity 0.2s ease;
}

.address-card__edit:hover {
   text-decoration: underline;
   opacity: 0.8;
}

.address-card__edit i {
   margin-right: 0.25rem;
}

/* Add address button */
.address-card--add {
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   gap: 0.75rem;
   border: 2px dashed #ccc;
   background: #fafafa;
   color: #666;
   font-size: 1rem;
   font-weight: 500;
   min-height: 200px;
}

.address-card--add:hover {
   border-color: #E53935;
   color: #E53935;
   background: #fff;
   box-shadow: 0 2px 8px rgba(229, 57, 53, 0.1);
}

.address-card--add i {
   font-size: 2.5rem;
   margin-bottom: 0.5rem;
}

.address-card--add span {
   font-size: 1.05rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
   .saved-addresses {
      grid-template-columns: 1fr;
   }

   .address-card {
      padding: 1.25rem;
   }

   .address-card__name {
      font-size: 1.05rem;
   }

   .address-card--add {
      min-height: 160px;
   }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
   .saved-addresses {
      grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
   }
}

/* ====================================
   CHECKBOXES (VAT, Shipping)
   ==================================== */

.checkout-checkbox {
   display: flex;
   align-items: center;
   gap: 0.75rem;
   cursor: pointer;
   padding: 1rem;
   background: #fff;
   border: 2px solid #e5e5e5;
   border-radius: 8px;
   transition: all 0.2s ease;
   user-select: none;
}

.checkout-checkbox:hover {
   border-color: #333;
   background: #fafafa;
}

.checkout-checkbox input[type="checkbox"] {
   width: 20px;
   height: 20px;
   cursor: pointer;
   accent-color: #E53935;
}

.checkout-checkbox__icon {
   font-size: 1.5rem;
   color: #666;
   transition: color 0.2s ease;
}

.checkout-checkbox input[type="checkbox"]:checked + .checkout-checkbox__icon {
   color: #E53935;
}

.checkout-checkbox__label {
   font-size: 1.05rem;
   font-weight: 500;
   color: #333;
   flex: 1;
}

/* Small checkbox variant (nested) */
.checkout-checkbox--small {
   padding: 0.75rem;
   border: 1px solid #e5e5e5;
   margin-top: 1rem;
}

.checkout-checkbox--small .checkout-checkbox__label {
   font-size: 0.95rem;
   font-weight: 400;
}

/* Collapsible sections */
.checkout-subsection--collapsible {
   margin-bottom: 1.5rem;
}

.checkout-subsection__collapse {
   /* margin-top: 1.5rem; */
   padding: 1.5rem;
   background: #f9f9f9;
   border-radius: 8px;
   border: 0px solid #e5e5e5;
   border-top-left-radius: 0;
   border-top-right-radius: 0;
}

.checkout-subsection__subtitle {
   font-size: 1.1rem;
   font-weight: 600;
   color: #333;
   margin: 0 0 1.25rem 0;
   padding-bottom: 0.75rem;
   border-bottom: 2px solid #e5e5e5;
}

/* Mobile responsive */
@media (max-width: 768px) {
   .checkout-checkbox {
      padding: 0.875rem;
      gap: 0.625rem;
   }

   .checkout-checkbox__icon {
      font-size: 1.3rem;
   }

   .checkout-checkbox__label {
      font-size: 1rem;
   }

   .checkout-subsection__collapse {
      padding: 1.25rem;
   }
}

/* ===========================
   FORM VALIDATION STYLES
   =========================== */
input.is-invalid,
select.is-invalid,
textarea.is-invalid {
   border-color: #dc3545 !important;
   box-shadow: 0 0 0 0.15rem rgba(220, 53, 69, 0.15) !important;
}

input.is-invalid:focus,
select.is-invalid:focus,
textarea.is-invalid:focus {
   border-color: #dc3545 !important;
   box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
}

/* Invalid state for radio/checkbox groups */
.delivery-options.is-invalid,
.payment-options.is-invalid {
   border: 2px solid #dc3545;
   border-radius: 8px;
   padding: 1rem;
   background: rgba(220, 53, 69, 0.05);
}

/* Invalid state for checkbox labels */
.checkout-checkbox.is-invalid {
   border-color: #dc3545 !important;
   background: rgba(220, 53, 69, 0.05) !important;
}

/* Invalid state for address cards */
.address-cards.is-invalid {
   border: 2px solid #dc3545;
   border-radius: 8px;
   padding: 1rem;
   background: rgba(220, 53, 69, 0.05);
}

/* Remove invalid state animation */
input.is-invalid,
select.is-invalid,
textarea.is-invalid,
.is-invalid {
   animation: shake 0.3s ease-in-out;
}

@keyframes shake {
   0%, 100% { transform: translateX(0); }
   25% { transform: translateX(-5px); }
   75% { transform: translateX(5px); }
}

/* ===========================
   MOBILE STICKY ORDER BAR
   Desktop: display:none — completely hidden.
   Mobile (< 768px): always rendered (position:fixed), slides in/out
   via transform. JS adds/removes .is-visible when .checkout-summary
   enters/leaves viewport.
   =========================== */
.checkout-mobile-sticky-bar {
   display: none; /* hidden on desktop */
}

@media (max-width: 767px) {
   /* Always in DOM on mobile — slid below screen by default */
   .checkout-mobile-sticky-bar {
      display: block;
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 9000;
      background: var(--color-bg);
      padding: var(--space-md);
      padding-bottom: calc(var(--space-md) + env(safe-area-inset-bottom, 0px));
      box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
      border-top: 1px solid var(--color-border);
      /* Slide out (below screen) by default */
      transform: translateY(100%);
      transition: transform 0.3s ease;
   }

   /* JS adds this when .checkout-summary leaves viewport → slide up */
   .checkout-mobile-sticky-bar.is-visible {
      transform: translateY(0);
   }

   .checkout-mobile-sticky__total {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: var(--space-xs);
   }

   .checkout-mobile-sticky__total span {
      font-size: var(--fs-small);
      color: var(--color-text-muted);
   }

   .checkout-mobile-sticky__total strong {
      font-size: 1.25rem;
      font-weight: var(--fw-bold);
      color: var(--color-text);
   }

   .checkout-mobile-sticky__points {
      display: flex;
      align-items: center;
      gap: var(--space-xs);
      font-size: 0.75rem;
      color: var(--color-accent);
      margin-bottom: var(--space-sm);
   }

   .checkout-mobile-sticky__btn {
      width: 100%;
      margin: 0;
   }

   /* Extra padding at bottom of main so form fields aren't hidden behind sticky bar */
   .checkout-main {
      padding-bottom: 180px;
   }
}

/* ===========================
   CHECKOUT REGISTER CARD
   "Załóż konto" prompt for guests
   v1.0.0 — klaudiusz@ovh-dpakula 2026-03-04
   =========================== */
.checkout-register-card {
   background: var(--color-bg-secondary, #f8f4f1);
   border: 1.5px solid var(--color-accent, #e34636);
   border-radius: 12px;
   margin-bottom: var(--space-md, 24px);
   overflow: hidden;
}

.checkout-register-card__label {
   display: flex;
   align-items: center;
   gap: var(--space-md, 16px);
   padding: var(--space-md, 16px) var(--space-lg, 24px);
   cursor: pointer;
   user-select: none;
}

.checkout-register-card__icon {
   flex-shrink: 0;
   width: 42px;
   height: 42px;
   background: var(--color-accent, #e34636);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   color: #fff;
   font-size: 1rem;
}

.checkout-register-card__text {
   flex: 1;
   display: flex;
   flex-direction: column;
   gap: 2px;
   min-width: 0;
}

.checkout-register-card__headline {
   font-size: var(--fs-body, 0.9rem);
   font-weight: var(--fw-bold, 700);
   color: var(--color-text);
}

.checkout-register-card__desc {
   font-size: var(--fs-small, 0.8rem);
   color: var(--color-text-muted);
   line-height: 1.4;
}

/* Toggle switch */
.checkout-register-card__toggle {
   flex-shrink: 0;
   position: relative;
   width: 44px;
   height: 24px;
}

.checkout-register-card__toggle input[type="checkbox"] {
   opacity: 0;
   width: 0;
   height: 0;
   position: absolute;
}

.checkout-register-card__checkmark {
   display: block;
   width: 44px;
   height: 24px;
   background: var(--color-border, #ccc);
   border-radius: 12px;
   transition: background 0.2s ease;
   position: relative;
   cursor: pointer;
}

.checkout-register-card__checkmark::after {
   content: '';
   position: absolute;
   top: 2px;
   left: 2px;
   width: 20px;
   height: 20px;
   background: #fff;
   border-radius: 50%;
   transition: transform 0.2s ease;
   box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.checkout-register-card__toggle input:checked ~ .checkout-register-card__checkmark {
   background: var(--color-accent, #e34636);
}

.checkout-register-card__toggle input:checked ~ .checkout-register-card__checkmark::after {
   transform: translateX(20px);
}

/* Password field (shown when checkbox is checked) */
.checkout-register-card__password {
   padding: 0 var(--space-lg, 24px) var(--space-md, 16px);
   border-top: 1px solid rgba(0,0,0,.06);
}

@media (max-width: 600px) {
   .checkout-register-card__label {
      gap: var(--space-sm, 8px);
      padding: var(--space-sm, 12px) var(--space-md, 16px);
   }
}

/* ===========================
   CHECKOUT TOGGLE ROW
   Wtórne toggles: Faktura VAT, Wysyłka na inny adres
   Lżejszy visual od register card — szara ramka, bez opisu
   v1.0.0 — klaudiusz@ovh-dpakula 2026-03-04
   =========================== */
.checkout-toggle-row {
   background: var(--color-bg, #fff);
   border: 1px solid var(--color-border, #e0dbd6);
   border-radius: 12px;
   margin-bottom: var(--space-md, 16px);
   overflow: hidden;
}

.checkout-toggle-row__label {
   display: flex;
   align-items: center;
   gap: var(--space-md, 16px);
   padding: var(--space-md, 14px) var(--space-lg, 24px);
   cursor: pointer;
   user-select: none;
}

.checkout-toggle-row__icon {
   flex-shrink: 0;
   width: 36px;
   height: 36px;
   background: var(--color-bg-secondary, #f5f1ee);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   color: var(--color-text-muted, #888);
   font-size: 0.875rem;
}

.checkout-toggle-row__text {
   flex: 1;
   font-size: var(--fs-body, 0.875rem);
   font-weight: var(--fw-semibold, 600);
   color: var(--color-text);
}

.checkout-toggle-row__content {
   padding: var(--space-md, 16px) var(--space-lg, 24px) var(--space-md, 16px);
   /* border-top: 1px solid var(--color-border, #e0dbd6); */
}

/* Gdy toggle zaznaczony — subtelne podświetlenie ikony */
.checkout-toggle-row:has(input:checked) .checkout-toggle-row__icon {
   background: color-mix(in srgb, var(--color-accent, #e34636) 12%, transparent);
   color: var(--color-accent, #e34636);
}

@media (max-width: 600px) {
   .checkout-toggle-row__label {
      gap: var(--space-sm, 8px);
      padding: var(--space-sm, 12px) var(--space-md, 16px);
   }

   .checkout-toggle-row__content {
      padding: var(--space-sm, 12px) var(--space-md, 16px);
   }
}

/* ===========================
   INPOST GEOWIDGET v5
   =========================== */

.inpost-picker-section {
   margin-top: var(--space-md, 16px);
   padding: var(--space-md, 16px);
   border: 1px solid var(--color-border, #e0dbd6);
   border-radius: var(--radius-md, 8px);
   background: var(--color-surface, #faf9f8);
}

.inpost-picker__open-btn {
   display: flex;
   align-items: center;
   gap: var(--space-sm, 8px);
   width: 100%;
   padding: var(--space-sm, 10px) var(--space-md, 16px);
   background: var(--color-accent, #e34636);
   color: #fff;
   border: none;
   border-radius: var(--radius-sm, 6px);
   font-size: 0.95rem;
   font-weight: 600;
   cursor: pointer;
   transition: background 0.2s;
}

.inpost-picker__open-btn:hover {
   background: color-mix(in srgb, var(--color-accent, #e34636) 85%, black);
}

.inpost-picker__open-btn.is-invalid {
   outline: 2px solid var(--color-error, #d32f2f);
   outline-offset: 2px;
}

.inpost-picker__selected {
   display: flex;
   align-items: center;
   gap: var(--space-sm, 10px);
   padding: var(--space-sm, 10px) var(--space-md, 16px);
   background: color-mix(in srgb, var(--color-success, #2e7d32) 10%, transparent);
   border: 1px solid color-mix(in srgb, var(--color-success, #2e7d32) 40%, transparent);
   border-radius: var(--radius-sm, 6px);
   margin-bottom: var(--space-sm, 8px);
}

.inpost-picker__selected i {
   color: var(--color-success, #2e7d32);
   font-size: 1.2rem;
   flex-shrink: 0;
}

.inpost-picker__selected-info {
   flex: 1;
   min-width: 0;
}

.inpost-picker__selected-info strong {
   display: block;
   font-size: 0.95rem;
   color: var(--color-text, #1a1a1a);
}

.inpost-picker__selected-info span {
   display: block;
   font-size: 0.85rem;
   color: var(--color-text-muted, #6b6b6b);
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
}

.inpost-picker__change-btn {
   flex-shrink: 0;
   padding: 4px 10px;
   background: transparent;
   border: 1px solid var(--color-border, #e0dbd6);
   border-radius: var(--radius-sm, 4px);
   font-size: 0.8rem;
   cursor: pointer;
   color: var(--color-text, #1a1a1a);
   transition: background 0.15s;
}

.inpost-picker__change-btn:hover {
   background: var(--color-bg-hover, #f0ece8);
}

/* InPost modal overlay */
.inpost-modal {
   position: fixed;
   inset: 0;
   background: rgba(0,0,0,0.6);
   z-index: 9999;
   display: flex;
   align-items: center;
   justify-content: center;
   padding: var(--space-md, 16px);
}

.inpost-modal__content {
   position: relative;
   background: #fff;
   border-radius: var(--radius-md, 10px);
   width: 100%;
   max-width: 900px;
   height: 80vh;
   max-height: 700px;
   overflow: hidden;
   display: flex;
   flex-direction: column;
}

.inpost-modal__close {
   position: absolute;
   top: var(--space-sm, 10px);
   right: var(--space-sm, 10px);
   z-index: 10;
   width: 32px;
   height: 32px;
   background: rgba(255,255,255,0.9);
   border: 1px solid var(--color-border, #e0dbd6);
   border-radius: 50%;
   cursor: pointer;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 0.9rem;
   color: var(--color-text, #1a1a1a);
   transition: background 0.15s;
}

.inpost-modal__close:hover {
   background: var(--color-bg-hover, #f0ece8);
}

#inpostGeowidgetContainer,
#inpostGeowidgetContainer inpost-geowidget {
   flex: 1;
   width: 100%;
   height: 100%;
   display: block;
}

body.inpost-modal-open {
   overflow: hidden;
}

@media (max-width: 600px) {
   .inpost-modal {
      padding: 0;
      align-items: flex-end;
   }

   .inpost-modal__content {
      border-radius: var(--radius-md, 10px) var(--radius-md, 10px) 0 0;
      height: 90vh;
      max-height: none;
   }
}

/* ===========================
   DPD PICKUP WIDGET
   =========================== */

.dpd-picker-section {
   margin-top: var(--space-md, 16px);
   padding: var(--space-md, 16px);
   border: 1px solid var(--color-border, #e0dbd6);
   border-radius: var(--radius-md, 8px);
   background: var(--color-surface, #faf9f8);
}

.dpd-picker__open-btn {
   display: flex;
   align-items: center;
   gap: var(--space-sm, 8px);
   width: 100%;
   padding: var(--space-sm, 10px) var(--space-md, 16px);
   background: #dd1f26;
   color: #fff;
   border: none;
   border-radius: var(--radius-sm, 6px);
   font-size: 0.95rem;
   font-weight: 600;
   cursor: pointer;
   transition: background 0.2s;
}

.dpd-picker__open-btn:hover {
   background: color-mix(in srgb, #dd1f26 85%, black);
}

.dpd-picker__open-btn.is-invalid {
   outline: 2px solid var(--color-error, #d32f2f);
   outline-offset: 2px;
}

.dpd-picker__selected {
   display: flex;
   align-items: center;
   gap: var(--space-sm, 10px);
   padding: var(--space-sm, 10px) var(--space-md, 16px);
   background: color-mix(in srgb, var(--color-success, #2e7d32) 10%, transparent);
   border: 1px solid color-mix(in srgb, var(--color-success, #2e7d32) 40%, transparent);
   border-radius: var(--radius-sm, 6px);
   margin-bottom: var(--space-sm, 8px);
}

.dpd-picker__selected i {
   color: var(--color-success, #2e7d32);
   font-size: 1.2rem;
   flex-shrink: 0;
}

.dpd-picker__selected-info {
   flex: 1;
   min-width: 0;
}

.dpd-picker__selected-info strong {
   display: block;
   font-size: 0.95rem;
   color: var(--color-text, #1a1a1a);
}

.dpd-picker__selected-info span {
   display: block;
   font-size: 0.85rem;
   color: var(--color-text-muted, #6b6b6b);
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
}

.dpd-picker__change-btn {
   flex-shrink: 0;
   padding: 4px 10px;
   background: transparent;
   border: 1px solid var(--color-border, #e0dbd6);
   border-radius: var(--radius-sm, 4px);
   font-size: 0.8rem;
   cursor: pointer;
   color: var(--color-text, #1a1a1a);
   transition: background 0.15s;
}

.dpd-picker__change-btn:hover {
   background: var(--color-bg-hover, #f0ece8);
}

/* DPD Pickup modal overlay */
.dpd-modal {
   position: fixed;
   inset: 0;
   background: rgba(0,0,0,0.6);
   z-index: 9999;
   display: flex;
   align-items: center;
   justify-content: center;
   padding: var(--space-md, 16px);
}

.dpd-modal__content {
   position: relative;
   background: #fff;
   border-radius: var(--radius-md, 10px);
   width: 100%;
   max-width: 900px;
   height: 80vh;
   max-height: 700px;
   overflow: hidden;
   display: flex;
   flex-direction: column;
}

.dpd-modal__close {
   position: absolute;
   top: var(--space-sm, 10px);
   right: var(--space-sm, 10px);
   z-index: 10;
   width: 32px;
   height: 32px;
   background: rgba(255,255,255,0.9);
   border: 1px solid var(--color-border, #e0dbd6);
   border-radius: 50%;
   cursor: pointer;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 0.9rem;
   color: var(--color-text, #1a1a1a);
   transition: background 0.15s;
}

.dpd-modal__close:hover {
   background: var(--color-bg-hover, #f0ece8);
}

#dpdMapIframe {
   flex: 1;
   width: 100%;
   height: 100%;
   display: block;
   border: none;
}

body.dpd-modal-open {
   overflow: hidden;
}

@media (max-width: 600px) {
   .dpd-modal {
      padding: 0;
      align-items: flex-end;
   }

   .dpd-modal__content {
      border-radius: var(--radius-md, 10px) var(--radius-md, 10px) 0 0;
      height: 90vh;
      max-height: none;
   }
}

/* ===========================
   DHL POP WIDGET
=========================== */
.dhl-picker-section {
   margin-top: var(--space-sm, 10px);
}

.dhl-picker__open-btn {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   padding: 10px 18px;
   background: var(--color-primary, #cc0605);
   color: #fff;
   border: none;
   border-radius: var(--radius-sm, 6px);
   font-size: 0.9rem;
   font-weight: 500;
   cursor: pointer;
   transition: background 0.15s;
}

.dhl-picker__open-btn:hover {
   background: var(--color-primary-dark, #aa0504);
}

.dhl-picker__open-btn.is-invalid {
   outline: 2px solid var(--color-error, #e53935);
   outline-offset: 2px;
}

.dhl-picker__selected {
   display: flex;
   align-items: center;
   gap: 10px;
   padding: 10px 14px;
   background: var(--color-bg-card, #faf8f6);
   border: 1px solid var(--color-border, #e0dbd6);
   border-radius: var(--radius-sm, 6px);
   margin-bottom: 8px;
}

.dhl-picker__selected i {
   color: var(--color-primary, #cc0605);
   font-size: 1.1rem;
   flex-shrink: 0;
}

.dhl-picker__selected-info {
   flex: 1;
   min-width: 0;
}

.dhl-picker__selected-info strong {
   display: block;
   font-size: 0.9rem;
   color: var(--color-text, #1a1a1a);
}

.dhl-picker__selected-info span {
   display: block;
   font-size: 0.85rem;
   color: var(--color-text-muted, #6b6b6b);
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
}

.dhl-picker__change-btn {
   flex-shrink: 0;
   padding: 4px 10px;
   background: transparent;
   border: 1px solid var(--color-border, #e0dbd6);
   border-radius: var(--radius-sm, 4px);
   font-size: 0.8rem;
   cursor: pointer;
   color: var(--color-text, #1a1a1a);
   transition: background 0.15s;
}

.dhl-picker__change-btn:hover {
   background: var(--color-bg-hover, #f0ece8);
}

/* DHL POP modal overlay */
.dhl-modal {
   position: fixed;
   inset: 0;
   background: rgba(0,0,0,0.6);
   z-index: 9999;
   display: flex;
   align-items: center;
   justify-content: center;
   padding: var(--space-md, 16px);
}

.dhl-modal__content {
   position: relative;
   background: #fff;
   border-radius: var(--radius-md, 10px);
   width: 100%;
   max-width: 900px;
   height: 80vh;
   max-height: 700px;
   overflow: hidden;
   display: flex;
   flex-direction: column;
}

.dhl-modal__close {
   position: absolute;
   top: var(--space-sm, 10px);
   right: var(--space-sm, 10px);
   z-index: 10;
   width: 32px;
   height: 32px;
   background: rgba(255,255,255,0.9);
   border: 1px solid var(--color-border, #e0dbd6);
   border-radius: 50%;
   cursor: pointer;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 0.9rem;
   color: var(--color-text, #1a1a1a);
   transition: background 0.15s;
}

.dhl-modal__close:hover {
   background: var(--color-bg-hover, #f0ece8);
}

#dhlMapIframe {
   flex: 1;
   width: 100%;
   height: 100%;
   display: block;
   border: none;
}

body.dhl-modal-open {
   overflow: hidden;
}

@media (max-width: 600px) {
   .dhl-modal {
      padding: 0;
      align-items: flex-end;
   }

   .dhl-modal__content {
      border-radius: var(--radius-md, 10px) var(--radius-md, 10px) 0 0;
      height: 90vh;
      max-height: none;
   }
}

/* ========================================
   PACKETA PICKER SECTION
   Packeta Widget v6 — otwiera własne UI (nie iframe)
   ======================================== */
.packeta-picker-section {
   margin-top: var(--space-sm, 10px);
}

.packeta-picker__open-btn {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   padding: 10px 18px;
   background: var(--color-primary, #cc0605);
   color: #fff;
   border: none;
   border-radius: var(--radius-sm, 6px);
   font-size: 0.9rem;
   font-weight: 500;
   cursor: pointer;
   transition: background 0.15s;
}

.packeta-picker__open-btn:hover {
   background: var(--color-primary-dark, #aa0504);
}

.packeta-picker__open-btn.is-invalid {
   outline: 2px solid var(--color-error, #e53935);
   outline-offset: 2px;
}

.packeta-picker__selected {
   display: flex;
   align-items: center;
   gap: 10px;
   padding: 10px 14px;
   background: var(--color-bg-card, #faf8f6);
   border: 1px solid var(--color-border, #e0dbd6);
   border-radius: var(--radius-sm, 6px);
   margin-bottom: 8px;
}

.packeta-picker__selected i {
   color: var(--color-primary, #cc0605);
   font-size: 1.1rem;
   flex-shrink: 0;
}

.packeta-picker__selected-info {
   flex: 1;
   min-width: 0;
}

.packeta-picker__selected-info strong {
   display: block;
   font-size: 0.9rem;
   color: var(--color-text, #1a1a1a);
}

.packeta-picker__selected-info span {
   display: block;
   font-size: 0.85rem;
   color: var(--color-text-muted, #6b6b6b);
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
}

.packeta-picker__change-btn {
   flex-shrink: 0;
   padding: 4px 10px;
   background: transparent;
   border: 1px solid var(--color-border, #e0dbd6);
   border-radius: var(--radius-sm, 6px);
   font-size: 0.8rem;
   cursor: pointer;
   transition: background 0.15s;
}

.packeta-picker__change-btn:hover {
   background: var(--color-bg-hover, #f0ece8);
}

/* ===========================
   CART GRATIS SECTION (buy_x_get_y kampanie)
   v2.6.0 (17.03.2026) klaudiusz@ovh-dpakula
   =========================== */

.cart-gratis-section {
   margin-top: var(--space-md, 16px);
}

.cart-gratis-section__title {
   font-size: var(--fs-small, 0.875rem);
   font-weight: var(--fw-semibold, 600);
   color: #2d9b5a;
   margin: 0 0 var(--space-sm, 8px);
   display: flex;
   align-items: center;
   gap: 6px;
}

.cart-gratis-section__title .fa-gift {
   font-size: 1em;
}

/* Gratis item — rozszerza bazowy .cart-item */
.cart-item--gratis {
   border: 1px solid #b6e4cc;
   background: #f0faf5;
   position: relative;
   /* Nadpisz grid — bez qty-stepper, zamiast niego __qty text */
   grid-template-columns: 80px 1fr auto auto 40px;
}

.cart-item--gratis .cart-item__price-current--gratis {
   color: #2d9b5a;
   font-weight: var(--fw-bold, 700);
}

/* Badge GRATIS */
.gratis-badge {
   display: inline-block;
   padding: 2px 7px;
   background: #2d9b5a;
   color: #fff;
   font-size: 0.6875rem;
   font-weight: var(--fw-bold, 700);
   letter-spacing: 0.04em;
   border-radius: var(--radius-sm, 4px);
   vertical-align: middle;
   margin-left: 4px;
}

/* Qty text (jeśli qty > 1) */
.cart-item--gratis__qty {
   font-size: var(--fs-body, 0.9375rem);
   font-weight: var(--fw-semibold, 600);
   color: var(--color-text-muted);
   min-width: 24px;
   text-align: center;
}

/* Kampania info */
.cart-item--gratis__campaign {
   color: #2d9b5a;
   font-size: 0.75rem;
}

.cart-item--gratis__campaign .fa-star {
   font-size: 0.7em;
}

/* Ikona prezentu (zastępuje przycisk Usuń) */
.cart-item--gratis__icon {
   width: 32px;
   height: 32px;
   display: flex;
   align-items: center;
   justify-content: center;
   color: #2d9b5a;
   font-size: 1rem;
}

/* Responsive */
@media (max-width: 640px) {
   .cart-item--gratis {
      grid-template-columns: 64px 1fr auto;
      grid-template-areas:
         "img details details"
         "img qty     price";
   }

   .cart-item--gratis .cart-item__image {
      grid-area: img;
      width: 64px;
      height: 64px;
   }

   .cart-item--gratis .cart-item__details {
      grid-area: details;
   }

   .cart-item--gratis__qty {
      grid-area: qty;
   }

   .cart-item--gratis .cart-item__price {
      grid-area: price;
   }

   .cart-item--gratis__icon {
      display: none;
   }
}

/* ===========================
   CART LOYALTY SECTION
   =========================== */

.cart-loyalty {
   padding-top: var(--space-md);
}

.cart-loyalty__header {
   display: flex;
   align-items: center;
   gap: var(--space-sm);
   margin-bottom: var(--space-sm);
}

.cart-loyalty__icon {
   color: #f5a623;
   font-size: 1.1rem;
}

.cart-loyalty__title {
   font-size: var(--fs-base);
   font-weight: var(--fw-semibold);
   color: var(--color-text);
   margin: 0;
}

.cart-loyalty__balance {
   font-size: var(--fs-small);
   color: var(--color-text-muted);
   margin-bottom: var(--space-md);
}

.cart-loyalty__balance strong {
   color: var(--color-text);
}

.cart-loyalty__label {
   font-size: var(--fs-small);
   color: var(--color-text-muted);
   margin-bottom: var(--space-xs);
}

.cart-loyalty__slider-wrap {
   display: flex;
   align-items: center;
   gap: var(--space-sm);
   margin-bottom: var(--space-sm);
}

.cart-loyalty__slider {
   flex: 1;
   accent-color: #2d9b5a;
   cursor: pointer;
   height: 6px;
}

.cart-loyalty__slider:disabled {
   opacity: 0.5;
   cursor: default;
}

.cart-loyalty__points-input {
   width: 80px;
   padding: 4px 8px;
   border: 1px solid var(--color-border);
   border-radius: var(--radius-sm);
   font-family: var(--font-base);
   font-size: var(--fs-small);
   text-align: center;
}

.cart-loyalty__pts-label {
   font-size: var(--fs-small);
   color: var(--color-text-muted);
   white-space: nowrap;
}

.cart-loyalty__info {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-bottom: var(--space-md);
   padding: var(--space-sm) var(--space-md);
   background: var(--color-bg-light, #f8f9fa);
   border-radius: var(--radius-sm);
   font-size: var(--fs-small);
}

.cart-loyalty__pln {
   font-weight: var(--fw-semibold);
   color: #2d9b5a;
}

.cart-loyalty__remaining {
   color: var(--color-text-muted);
}

.cart-loyalty__actions {
   display: flex;
   gap: var(--space-sm);
}

.cart-loyalty__btn-apply {
   flex: 1;
   padding: var(--space-sm) var(--space-lg);
   background: #2d9b5a;
   border: none;
   border-radius: var(--radius-sm);
   color: #fff;
   font-family: var(--font-base);
   font-size: var(--fs-small);
   font-weight: var(--fw-semibold);
   cursor: pointer;
   transition: var(--transition-base);
}

.cart-loyalty__btn-apply:hover:not(:disabled) {
   background: #1f7a44;
}

.cart-loyalty__btn-apply:disabled {
   opacity: 0.5;
   cursor: default;
}

.cart-loyalty__btn-cancel {
   flex: 1;
   padding: var(--space-sm) var(--space-lg);
   background: transparent;
   border: 1px solid var(--color-border);
   border-radius: var(--radius-sm);
   color: var(--color-text-muted);
   font-family: var(--font-base);
   font-size: var(--fs-small);
   cursor: pointer;
   transition: var(--transition-base);
}

.cart-loyalty__btn-cancel:hover {
   border-color: var(--color-text-muted);
   color: var(--color-text);
}

.cart-loyalty__applied {
   display: flex;
   align-items: center;
   gap: var(--space-sm);
   padding: var(--space-sm) var(--space-md);
   background: #e8f5e9;
   border: 1px solid #c8e6c9;
   border-radius: var(--radius-sm);
   font-size: var(--fs-small);
   color: #1b5e20;
}

.cart-loyalty__applied i {
   color: #2d9b5a;
   flex-shrink: 0;
}

/* Summary row — loyalty discount */
.checkout-summary__row--loyalty-discount .loyalty-discount-value {
   color: #2d9b5a;
   font-weight: var(--fw-semibold);
}

@media (max-width: 640px) {
   .cart-loyalty__actions {
      flex-direction: column;
   }
   .cart-loyalty__slider-wrap {
      flex-wrap: wrap;
   }
   .cart-loyalty__points-input {
      width: 70px;
   }
}

/* ===== v2.8.0 (17.03.2026) — Loyalty Prize Cards in Cart ===== */

/* Saldo w nagłówku sekcji lojalnościowej */
.cart-loyalty__balance {
   margin-left: auto;
   font-size: var(--fs-small);
   color: var(--color-text-secondary);
}

.cart-loyalty__balance-pts {
   font-weight: var(--fw-semibold);
   color: var(--color-text-primary);
}

/* Wiersz aktywnej nagrody w summary koszyka */
.checkout-summary__row--loyalty-prize {
   color: var(--color-text-primary);
}
.checkout-summary__row--loyalty-prize > span:first-child {
   white-space: nowrap;
}
.loyalty-prize-summary__title {
   font-weight: var(--fw-semibold);
   color: #2d9b5a;
   font-size: var(--fs-small);
   text-align: right;
}

/* Loyalty discount row in summary */
.checkout-summary__row--loyalty-discount {
   color: #2d9b5a;
}
.loyalty-discount-amount {
   font-weight: var(--fw-semibold);
   color: #2d9b5a;
}

/* ── Nagrody — paski (horizontal bars) ─────────────────────────── */
.loyalty-prizes__list {
   display: flex;
   flex-direction: column;
   gap: 6px;
   margin-top: var(--space-sm);
}
.loyalty-row {
   display: flex;
   align-items: center;
   justify-content: space-between;
   padding: 10px 14px;
   border: 1px solid var(--color-border);
   border-radius: 8px;
   background: #fff;
   gap: 12px;
   transition: border-color .15s, background .15s;
}
.loyalty-row:hover {
   border-color: #f5a623;
}
.loyalty-row--active {
   border-color: #2d9b5a;
   background: #f0fdf4;
}
.loyalty-row--unavailable {
   opacity: .55;
}
.loyalty-row__info {
   display: flex;
   flex-direction: column;
   gap: 2px;
   min-width: 0;
   flex: 1;
}
.loyalty-row__title {
   font-size: var(--fs-small);
   font-weight: var(--fw-semibold);
   color: var(--color-text-primary);
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
}
.loyalty-row__value {
   font-size: 0.75rem;
   color: #2d9b5a;
   font-weight: var(--fw-medium);
}
.loyalty-row__meta {
   display: flex;
   align-items: center;
   gap: 10px;
   flex-shrink: 0;
}
.loyalty-row__cost {
   font-size: var(--fs-small);
   color: var(--color-text-muted);
   white-space: nowrap;
}
.loyalty-row__btn {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   padding: 5px 14px;
   border-radius: 6px;
   font-size: 0.8rem;
   font-weight: var(--fw-semibold);
   white-space: nowrap;
   border: none;
   cursor: pointer;
   transition: background .15s;
}
.loyalty-row__btn--redeem {
   background: #E34636;
   color: #fff;
}
.loyalty-row__btn--redeem:hover {
   background: #c93a2c;
}
.loyalty-row__btn--active {
   background: #2d9b5a;
   color: #fff;
   cursor: pointer;
   transition: background .15s, color .15s;
   gap: 5px;
}
.loyalty-row__btn--active .loyalty-row__icon-hover,
.loyalty-row__btn--active .loyalty-row__label-hover {
   display: none;
}
.loyalty-row__btn--active:hover {
   background: #c93a2c;
}
.loyalty-row__btn--active:hover .loyalty-row__icon-default,
.loyalty-row__btn--active:hover .loyalty-row__label-default {
   display: none;
}
.loyalty-row__btn--active:hover .loyalty-row__icon-hover,
.loyalty-row__btn--active:hover .loyalty-row__label-hover {
   display: inline;
}
.loyalty-row__btn--locked {
   background: var(--color-bg-muted, #f0f0f0);
   color: var(--color-text-muted);
   cursor: default;
   font-weight: var(--fw-normal);
   font-size: 0.75rem;
}
@media (max-width: 480px) {
   .cart-loyalty__header {
      flex-wrap: wrap;
      gap: var(--space-xs);
   }
   .loyalty-row {
      flex-wrap: wrap;
      gap: 6px;
   }
   .loyalty-row__meta {
      width: 100%;
      justify-content: space-between;
   }
}

/* Order additional info (campaign gratis, discounts) */
.order-additional-info {
  background: #f0fff0;
  border: 1px solid #c3e6cb;
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 12px;
}
.order-additional-info__item {
  font-size: 14px;
  color: #1a6b1a;
  padding: 3px 0;
}
.order-additional-info__item i {
  color: #2a8f2a;
  margin-right: 4px;
}

/* Free delivery progress */
.checkout-summary__free-delivery {
  padding: var(--space-sm) var(--space-md);
  margin-bottom: 8px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  text-align: center;
  background: #fff3e0;
  color: #e65100;
  font-weight: 500;
}
.checkout-summary__free-delivery.free-delivery--active {
  background: #e8f5e9;
  color: #2e7d32;
}
