/* ================================
   CART SUMMARY FLOATING BAR
   ================================ */
.cart-summary-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.cart-summary-bar.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    margin: 0;
    border-radius: 0;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cart-summary-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

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

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

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

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

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

.cart-summary-bar .checkout-button {
    background: white;
    color: #667eea;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.cart-summary-bar .checkout-button:hover {
    background: #ffd700;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ================================
   CUSTOMER INFORMATION SECTION
   ================================ */
.cart-customer-fields {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.customer-fields-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.customer-fields-title i {
    color: #667eea;
}

.customer-fields-container {
    display: grid;
    gap: 15px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-group label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    display: flex;
    align-items: center;
    gap: 4px;
}

.field-group .required {
    color: #e74c3c;
    font-size: 14px;
}

.customer-input,
.customer-select {
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.customer-input:focus,
.customer-select:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

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

/* ================================
   FIELD ACTIONS
   ================================ */
.field-actions {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.field-actions .button {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.confirm-customer-info {
    background: #27ae60;
    color: white;
}

.confirm-customer-info:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(39, 174, 96, 0.3);
}

.edit-customer-info {
    background: #3498db;
    color: white;
}

.edit-customer-info:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.confirmed-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #d4edda;
    color: #155724;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
}

.confirmed-badge i {
    color: #28a745;
}

/* ================================
   CART TABLE ENHANCEMENTS
   ================================ */
.shop_table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.shop_table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.shop_table thead th {
    padding: 15px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.shop_table tbody tr {
    border-bottom: 1px solid #e9ecef;
}

.shop_table tbody tr:hover {
    background: #f8f9fa;
}

.shop_table td {
    padding: 20px 15px;
    vertical-align: middle;
}

.product-remove a {
    color: #e74c3c;
    font-size: 24px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-block;
}

.product-remove a:hover {
    color: #c0392b;
    transform: rotate(90deg);
}

.product-thumbnail img {
    max-width: 80px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-name a {
    color: #333;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-name a:hover {
    color: #667eea;
}

.product-subtotal .sst-note {
    display: block;
    color: #856404;
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
}

.actions {
    background: #f8f9fa;
    padding: 20px !important;
}

.actions .button {
    background: #667eea;
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.actions .button:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 768px) {
    .cart-summary-content {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .cart-summary-item {
        justify-content: space-between;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

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

    .cart-summary-bar .checkout-button {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .shop_table {
        font-size: 14px;
    }

    .shop_table thead {
        display: none;
    }

    .shop_table tbody tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        padding: 15px;
    }

    .shop_table tbody td {
        display: block;
        text-align: left;
        padding: 10px 0;
        border: none;
    }

    .shop_table tbody td:before {
        content: attr(data-title) ": ";
        font-weight: 600;
        color: #667eea;
    }

    .product-remove,
    .product-thumbnail {
        display: inline-block;
        width: auto;
    }

    .field-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .field-actions .button {
        width: 100%;
        justify-content: center;
    }
}