﻿.cart-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.cart-promo-line {
    margin-top: 6px;
    padding: 6px 10px;
    background: #fff4d6;
    border-left: 4px solid #f0a400;
    border-radius: 4px;
    color: #7a4b00;
}

.qty-input {
    width: 50px;
    text-align: center;
    padding: 4px;
}

.update-link {
    display: none;
    font-size: .85em;
    text-decoration: underline;
    cursor: pointer;
}

.cart-remove {
    font-size: .85em;
    text-decoration: underline;
    color: #b30000;
}

.promo-active-code {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f7f7f7;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 1.1em;
}

.promo-remove {
    color: #b30000;
    font-size: .9em;
    text-decoration: underline;
}

.promo-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
}

.promo-title {
    font-weight: 700;
    margin-bottom: 10px;
}

.promo-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.promo-code-box {
    flex-grow: 1;
}

.promo-input-wrapper .form-control {
    height: 44px;
}

.promo-input-wrapper input[type="submit"],
.promo-input-wrapper button,
.promo-input-wrapper .btn {
    height: 44px;
    padding: 0 16px;
    border-radius: 6px;
}

.promo-box .promo-note {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 12px;
    margin-bottom: 0;
    line-height: 1.35;
    border-top: 1px solid #eee;
    padding-top: 12px;
}

    .promo-box .promo-note strong {
        color: #343a40;
    }

.promo-box input:focus {
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.15);
}

.cart-summary-box {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-width: 520px;
    margin-left: auto;
}

    .cart-summary-box .small.text-muted {
        margin-top: 2px;
    }

    .cart-summary-box .cart-total-line {
        font-size: 1.15rem;
        font-weight: 700;
        margin: 0 0 6px 0;
        line-height: 1.2;
    }

        .cart-summary-box .cart-total-line br {
            display: none;
        }

        .cart-summary-box .cart-total-line strong,
        .cart-summary-box .cart-total-line b {
            font-weight: 800;
        }

.cart-price-col {
    text-align: center;
}

.cart-qty-col {
    text-align: center;
}

@media (min-width: 768px) {
    .cart-summary-box {
        display: flex;
        flex-direction: column;
    }

        .cart-summary-box .btn {
            margin-top: auto;
        }

    .promo-box,
    .cart-summary-box {
        min-height: 170px;
    }

    .promo-input-wrapper .promo-code-box {
        min-width: 0;
    }

    .promo-input-wrapper input[type="submit"] {
        width: 90px;
        white-space: nowrap;
    }
}

@media (max-width: 576px) {
    .promo-input-wrapper {
        flex-direction: column;
        gap: 8px;
    }

        .promo-input-wrapper input[type="submit"],
        .promo-input-wrapper button,
        .promo-input-wrapper .btn {
            width: 100%;
        }

    .cart-summary-box {
        max-width: none;
        margin-left: 0;
        text-align: center;
    }

    .cart-item {
        padding: 14px !important;
    }

        .cart-item .row {
            align-items: flex-start;
        }

        .cart-item .cart-img-col {
            display: flex;
            justify-content: center;
            margin-bottom: 10px;
        }

            .cart-item .cart-img-col img {
                max-width: 120px;
                height: auto;
                display: block;
                margin: 0 auto;
            }

        .cart-item .cart-desc-col {
            text-align: left;
        }

            .cart-item .cart-desc-col a strong {
                display: inline-block;
                font-size: 1.1rem;
                line-height: 1.2;
                margin-bottom: 2px;
            }

        .cart-item .cart-meta {
            color: #6c757d;
            margin-top: 2px;
        }

        .cart-item .cart-status {
            margin-top: 6px;
            font-weight: 700;
            line-height: 1.2;
        }

        .cart-item .cart-actions {
            margin-top: 8px;
        }

        .cart-item .cart-controls-row {
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid #eee;
        }

        .cart-item .cart-price-col {
            text-align: left;
        }

            .cart-item .cart-price-col strong {
                font-size: 1.2rem;
                display: inline-block;
            }

        .cart-item .cart-qty-col {
            text-align: right;
        }

        .cart-item .qty-input {
            width: 72px;
            height: 40px;
            padding: 4px 6px;
        }

        .cart-item .cart-qty-col .update-link {
            margin-top: 6px;
            font-size: .9rem;
            text-align: right;
        }
}

@media (max-width: 576px) {
    .cart-item .cart-img-col {
        padding-bottom: 4px;
    }
}

