#cartPage {
    margin-top: 20px;
    margin-bottom: 20px;
}

/* =========================
   KARTY / OGOLNY UKLAD
   ========================= */
#cartItems .card,
#checkoutSteps .card,
#cartSummary.card {
    border: 1px solid #e9ecef !important;
    border-radius: 12px;
    box-shadow: none !important;
    overflow: hidden;
    background: #fff;
}

#cartItems .card-body,
#checkoutSteps .card-body,
#cartSummary .card-body {
    padding: 24px;
}

/* =========================
   PRODUKTY
   ========================= */
.cart-item [data-role="product-image"] {
    max-width: 100%;
    max-height: 110px;
    object-fit: contain;
}

.cart-item [data-role="quantity"] {
    max-width: 70px;
}

.cart-item .btn[data-action="qty-plus"],
.cart-item .btn[data-action="qty-minus"] {
    min-width: 34px;
    height: 34px;
    line-height: 1;
    padding: 0;
}

/* =========================
   DOSTAWA / PLATNOSC
   ========================= */
#shippingOptions,
#paymentOptions {
    display: block;
}



/* =========================
   PODSUMOWANIE
   ========================= */
#cartSummary {
    margin-top: 24px;
}

.cart-summary-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f1f1;
}

.cart-summary-row:last-child {
    border-bottom: 0;
}

.cart-summary-label {
    font-size: 15px;
    color: #222;
}

.cart-summary-value {
    font-size: 15px;
    color: #111;
    text-align: right;
    white-space: nowrap;
}

.cart-summary-divider {
    height: 1px;
    background: #dee2e6;
    margin: 8px 0;
}

.cart-summary-row--total {
    padding-top: 14px;
}

.cart-summary-row--total .cart-summary-label,
.cart-summary-row--total .cart-summary-value {
    font-weight: 700;
    font-size: 18px;
}

/* =========================
   BUTTONY DOLNE
   ========================= */
#checkoutForm > .d-flex {
    gap: 16px;
    flex-wrap: wrap;
}

#submitOrderBtn {
    min-width: 180px;
}

/* =========================
   MOBILE
   ========================= */
@media (max-width: 767px) {
    #cartItems .card-body,
    #checkoutSteps .card-body,
    #cartSummary .card-body {
        padding: 16px;
    }

    .cart-summary-row {
        gap: 12px;
    }

    .cart-summary-label,
    .cart-summary-value {
        font-size: 14px;
    }

    .cart-summary-row--total .cart-summary-label,
    .cart-summary-row--total .cart-summary-value {
        font-size: 16px;
    }

    #checkoutForm > .d-flex {
        flex-direction: column;
        align-items: stretch !important;
    }

    #checkoutForm > .d-flex a,
    #checkoutForm > .d-flex button {
        width: 100%;
    }
}
/* =========================
   OPCJE DOSTAWY / PLATNOSCI - KAFELKI
   ========================= */

#shippingOptions,
#paymentOptions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkout-option {
    position: relative;
    margin: 0 !important;
}

.checkout-option__input {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
}

.checkout-option__label {
    display: flex !important;
    align-items: center !important;
    gap: 18px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 18px 20px !important;
    background: #f3f3f3 !important;
    border: 1px solid #e3e3e3 !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.checkout-option__label:hover {
    border-color: #111 !important;
    background: #fff !important;
}

.checkout-option__input:checked + .checkout-option__label {
    border-color: #111 !important;
    background: #fff !important;
    box-shadow: 0 0 0 1px #111 inset !important;
}

.checkout-option__logo {
    width: 72px;
    min-width: 72px;
    height: 72px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
}

.checkout-option__logo img {
    max-width: 48px;
    max-height: 48px;
    width: auto;
    height: auto;
    display: block;
}

.checkout-option__content {
    display: flex !important;
    align-items: center !important;
    min-width: 0;
    flex: 1 1 auto;
}

.checkout-option__title {
    display: block;
    font-size: 16px;
    line-height: 1.3;
    color: #222;
    font-weight: 500;
    margin-bottom: 0;
}

.checkout-option__desc,
.checkout-option__meta {
    display: block;
    font-size: 14px;
    line-height: 1.45;
    color: #7a7a7a;
}
.checkout-option__price {
    margin-left: auto;
    min-width: 90px;
    text-align: right;
    white-space: nowrap;
    font-size: 14px;
    line-height: 1.2;
    color: #666;
    font-weight: 500;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .checkout-option__label {
        padding: 14px 14px !important;
        gap: 12px !important;
    }

    .checkout-option__logo {
        width: 44px;
        min-width: 44px;
        height: 44px;
    }

    .checkout-option__logo img {
        max-width: 36px;
        max-height: 36px;
    }

    .checkout-option__title {
        font-size: 15px;
    }

    .checkout-option__price {
        min-width: 72px;
        font-size: 13px;
    }

    .checkout-option__desc,
    .checkout-option__meta {
        font-size: 13px;
    }
}
.checkout-placeholder {
    padding: 16px 18px;
    border: 1px dashed #d8d8d8;
    border-radius: 12px;
    background: #fafafa;
    color: #777;
    font-size: 14px;
    line-height: 1.4;
}
.checkout-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 72px;
    padding: 18px;
    border: 1px dashed #d8d8d8;
    border-radius: 12px;
    background: #fafafa;
    color: #666;
}

.checkout-loader__spinner {
    width: 22px;
    height: 22px;
    border: 2px solid #d9d9d9;
    border-top-color: #111;
    border-radius: 50%;
    animation: checkout-spin 0.8s linear infinite;
    flex-shrink: 0;
}

.checkout-loader__text {
    font-size: 14px;
    line-height: 1.4;
}

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