/* ================================
   CART PAGE HEADER
================================ */
.cart-page-header {
    text-align: center;
    margin: 40px 0;
}

.cart-page-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #0a3d62;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.cart-page-header h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #1e90ff;
    margin: 10px auto 0;
    border-radius: 2px;
}

.cart-page-header p {
    font-size: 18px;
    color: #555;
    margin-top: 10px;
}

/* ================================
   CART TABLE
================================ */
.woocommerce-cart table.cart {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0,0,0,0.08);
}

.woocommerce-cart table.cart td,
.woocommerce-cart table.cart th {
    vertical-align: middle;
    padding: 20px 15px;
    border-bottom: 1px solid #eee;
}

.woocommerce-cart table.cart thead th {
    text-align: center;
    padding: 15px;
    background: #1e90ff;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    border-radius: 16px 16px 0 0;
}

.woocommerce-cart .product-name {
    text-align: left;
    font-weight: 600;
    color: #0a3d62;
}

/* Product price styling */
.woocommerce-cart .product-price {
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    color: #1b8f3c;
    width: 150px;
}

/* Product quantity */
.woocommerce-cart .product-quantity {
    text-align: center;
    width: 120px;
}

.woocommerce-cart .product-quantity .quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.woocommerce-cart .product-quantity .quantity input.qty,
.woocommerce-cart .product-quantity .quantity input[type="number"] {
    width: 70px;
    height: 40px;
    padding: 6px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #0a3d62;
}

/* Remove spin buttons */
.woocommerce-cart .product-quantity input.qty::-webkit-inner-spin-button,
.woocommerce-cart .product-quantity input.qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.woocommerce-cart .product-quantity input.qty:focus {
    outline: none;
    border-color: #1e90ff;
    box-shadow: 0 0 0 3px rgba(30,144,255,0.15);
}

/* ================================
   CART SUMMARY BAR
================================ */
.cart-summary-bar {
    background: #0057b7 !important;  /* match Add to Cart button */
    color: #fff !important;
    padding: 15px 20px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Sticky version */
.cart-summary-bar.sticky {
    position: fixed !important;
    top: 110px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 30px) !important;
    z-index: 9999 !important;
    border-radius: 16px !important;
}

/* Checkout button */
.cart-summary-bar .checkout-button {
    background: #ffd700 !important;  /* gold button */
    color: #003f82 !important;       /* dark text */
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.cart-summary-bar .checkout-button:hover {
    background: #e6c200 !important;
    color: #003f82 !important;
    transform: translateY(-2px);
}

/* Content inside bar */
.cart-summary-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

/* Summary items */
.cart-summary-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-summary-item .summary-label {
    font-weight: 500;
    font-size: 14px;
    opacity: 0.9;
}

.cart-summary-item .summary-value {
    font-weight: 700;
    font-size: 16px;
}

.cart-summary-total {
    padding-left: 20px;
    border-left: 2px solid rgba(255,255,255,0.3);
}

.cart-summary-total .summary-value {
    font-size: 20px;
    color: #ffd700;
}

/* ================================
   CUSTOMER FIELDS
================================ */
.cart-customer-fields {
    margin-top: 15px;
    padding: 15px;
    background: #f7f9fc;
    border-radius: 16px;
    border-left: 4px solid #1e90ff;
}

.customer-fields-title {
    font-size: 16px;
    font-weight: 600;
    color: #0a3d62;
    margin-bottom: 12px;
}

.field-group {
    margin-bottom: 12px;
}

.field-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}

.required {
    color: #e74c3c;
}

.customer-input,
.customer-select {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.customer-input:disabled,
.customer-select:disabled {
    background: #e9ecef;
    cursor: not-allowed;
}

.ic-error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 4px;
}

.field-actions {
    margin-top: 12px;
}

.confirmed-badge {
    display: inline-block;
    padding: 6px 12px;
    background: #d4edda;
    color: #155724;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    margin-right: 8px;
}

/* ================================
   RESPONSIVE ADJUSTMENTS
================================ */
@media screen and (max-width: 768px) {

    .woocommerce-cart .product-quantity {
        display: block;
        width: 100%;
        margin: 10px 0;
    }

    .woocommerce-cart .product-quantity .quantity {
        justify-content: flex-start;
    }

    .woocommerce-cart .product-quantity .quantity input.qty {
        width: 80px;
    }

    .woocommerce-cart table.cart td,
    .woocommerce-cart table.cart th {
        padding: 10px;
    }

    .cart-summary-bar.sticky {
        top: 60px !important;
        width: calc(100% - 20px) !important;
        margin: 0 10px;
    }

    .cart-summary-content {
        flex-direction: column;
        gap: 10px;
    }

    .cart-summary-item {
        width: 100%;
        justify-content: space-between;
    }

    .cart-summary-total {
        padding-left: 0;
        border-left: none;
        border-top: 2px solid rgba(255,255,255,0.3);
        padding-top: 10px;
    }

    .checkout-button {
        width: 100%;
        text-align: center;
    }
}