/* 
 * HEIDMARK IMKEREI - WARENKORB (SHOPPING CART) SPECIFIC STYLES
 * Extends global-styles.css for shopping cart functionality
 * Version: 1.0 - August 2025
 */

/* ==========================================================================
   NAVIGATION FIXES FOR WARENKORB
   ========================================================================== */

/* Ensure no unwanted desktop navigation elements are visible */
.header-navigation,
.desktop-nav,
#headerLayoutGrid,
#wb_headerLayoutGrid,
.header-menu,
.nav-menu,
.main-navigation {
    display: none !important;
}

/* Hide any stray menu elements */
[id*="menu"], [id*="Menu"], [class*="menu"], [class*="Menu"] {
    display: none;
}

/* Exception: Keep our mobile navigation and cart elements */
.mobile-nav-menu,
.mobile-nav-toggle,
.mobile-nav-overlay,
.cart-section,
.cart-summary {
    display: block;
}

/* Mobile navigation should be hidden on desktop by default */
@media (min-width: 769px) {
    .mobile-nav-toggle {
        display: none;
    }
    
    .mobile-nav-menu {
        transform: translateX(-100%);
        visibility: hidden;
    }
    
    .mobile-nav-overlay {
        display: none;
    }
}

/* ==========================================================================
   CART-SPECIFIC LAYOUT
   ========================================================================== */
.header {
    background: rgba(255, 248, 220, 0.95);
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-top: 60px; /* Add top margin to avoid overlap with fixed back button */
}

.header h1 {
    color: #D2691E;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    text-align: center;
}

.back-to-shop {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: linear-gradient(135deg, #D2691E 0%, #FF8C00 100%);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(210, 105, 30, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-to-shop:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(210, 105, 30, 0.4);
    color: white;
    text-decoration: none;
}

.back-to-shop i {
    font-size: 14px;
}

/* Mobile responsive adjustments for back button */
@media (max-width: 768px) {
    .back-to-shop {
        top: 15px;
        left: 15px;
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .header {
        margin-top: 70px; /* More margin on mobile for the smaller button */
        padding: 15px;
    }
    
    .header h1 {
        font-size: 24px;
    }
}

/* ==========================================================================
   CART ITEMS DISPLAY - GRID LAYOUT
   ========================================================================== */
.cart-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Cart Header */
.cart-header {
    display: grid;
    grid-template-columns: 100px 1fr 120px 140px 120px 60px;
    gap: 20px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #D2691E 0%, #FF8C00 100%);
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px 8px 0 0;
    margin-bottom: 2px;
}

.cart-header > div {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-header .header-info {
    justify-content: flex-start;
    padding-left: 10px;
}

/* Cart Items Grid */
.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr 120px 140px 120px 60px;
    gap: 20px;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(210, 105, 30, 0.2);
    transition: background-color 0.3s ease;
    background: white;
}

.cart-item:hover {
    background-color: rgba(255, 248, 220, 0.8);
}

.cart-item:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

/* Grid Cells */
.item-image-cell {
    display: flex;
    justify-content: center;
    align-items: center;
}

.item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.item-info-cell {
    text-align: left;
    padding-left: 10px;
}

.item-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.3;
}

.item-variant {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.item-weight {
    font-size: 12px;
    color: #999;
}

.item-price-cell {
    text-align: center;
}

.price-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 5px;
    font-weight: 500;
}

.price-value {
    color: #D2691E;
    font-size: 16px;
    font-weight: 700;
}

.item-quantity-cell {
    text-align: center;
}

.quantity-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 500;
}

.item-total-cell {
    text-align: center;
}

.total-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 5px;
    font-weight: 500;
}

.total-value {
    color: #D2691E;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 3px;
}

.total-weight {
    font-size: 11px;
    color: #999;
}

.item-actions-cell {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ==========================================================================
   QUANTITY CONTROLS
   ========================================================================== */
.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    border: none;
    background: #D2691E;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: #FF8C00;
    transform: scale(1.05);
}

.quantity-input {
    width: 60px;
    height: 35px;
    border: 2px solid #e1e1e1;
    border-radius: 6px;
    text-align: center;
    margin: 0 10px;
    font-size: 16px;
    font-weight: 600;
}

.remove-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background: #c82333;
    transform: scale(1.05);
}

/* ==========================================================================
   CART SUMMARY & CHECKOUT
   ========================================================================== */
.cart-summary {
    background: rgba(255, 248, 220, 0.95);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(210, 105, 30, 0.2);
}

.total-row {
    font-size: 20px;
    font-weight: 700;
    color: #D2691E;
    border-top: 2px solid #D2691E;
    padding-top: 15px;
    margin-top: 15px;
}

.checkout-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   CUSTOMER STATUS NOTIFICATIONS
   ========================================================================== */
.customer-status {
    display: none;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.5;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.customer-status i {
    margin-right: 10px;
    font-size: 16px;
}

/* Green highlighting for existing/returning customers */
.customer-status.existing {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.customer-status.existing i {
    color: #28a745;
}

/* Blue styling for new customers */
.customer-status.new {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.customer-status.new i {
    color: #17a2b8;
}

/* Error/warning styling */
.customer-status.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.customer-status.error i {
    color: #dc3545;
}

/* ==========================================================================
   PAYMENT & DELIVERY OPTIONS
   ========================================================================== */
.payment-option, 
.delivery-option {
    display: flex;
    align-items: flex-start; /* Changed from center to flex-start for better multiline support */
    padding: 15px 20px;
    border: 2px solid #e1e1e1;
    border-radius: 10px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    min-height: 60px; /* Ensure consistent height */
}

.payment-option:hover, 
.delivery-option:hover {
    border-color: #D2691E;
    background: rgba(255, 248, 220, 0.5);
    transform: translateY(-1px);
}

.payment-option.selected, 
.delivery-option.selected {
    border-color: #D2691E;
    background: rgba(210, 105, 30, 0.1);
    box-shadow: 0 4px 15px rgba(210, 105, 30, 0.2);
}

.payment-icon {
    font-size: 24px;
    margin-right: 15px;
    color: #D2691E;
    margin-top: 2px; /* Slight top margin for better alignment */
}

.payment-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.payment-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 16px;
}

.payment-description {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.payment-description br {
    margin-bottom: 4px;
}

.payment-description small {
    display: block;
    margin-top: 4px;
    font-weight: 600;
}

/* ==========================================================================
   PACKAGE INFORMATION
   ========================================================================== */
.package-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 248, 220, 0.3);
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid #D2691E;
}

.package-size {
    font-weight: 600;
    color: #D2691E;
}

.package-details {
    flex: 1;
    text-align: center;
    color: #666;
}

.package-cost {
    font-weight: 600;
    color: #333;
}

.discount-info {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    margin-top: 15px;
}

/* ==========================================================================
   EMPTY CART STYLES
   ========================================================================== */
.empty-cart {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-cart i {
    font-size: 64px;
    color: #D2691E;
    margin-bottom: 20px;
    opacity: 0.7;
}

.empty-cart h2 {
    color: #333;
    margin-bottom: 20px;
}

.continue-shopping {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #D2691E 0%, #FF8C00 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(210, 105, 30, 0.3);
}

.continue-shopping:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(210, 105, 30, 0.4);
    color: white;
}

/* ==========================================================================
   MODAL STYLES
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    animation: modalFadeIn 0.3s ease forwards;
    backdrop-filter: blur(3px);
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    animation: modalSlideIn 0.3s ease forwards;
    position: relative;
}

/* Enhanced PayPal modal styles */
#paypal-direct-modal .modal-content {
    max-width: 600px;
    text-align: center;
}

#paypal-direct-modal .btn-primary {
    background: linear-gradient(135deg, #0070ba, #003087);
    border: none;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
    justify-content: center;
}

#paypal-direct-modal .btn-primary:hover {
    background: linear-gradient(135deg, #005ea6, #002d7a);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 112, 186, 0.3);
}

#paypal-direct-modal .btn-secondary {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    color: #6c757d;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 150px;
    justify-content: center;
}

#paypal-direct-modal .btn-secondary:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #5a6268;
}

#paypal-direct-modal .btn-success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    border: none;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
    justify-content: center;
}

#paypal-direct-modal .btn-success:hover {
    background: linear-gradient(135deg, #218838, #1c7430);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

@keyframes modalFadeIn {
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    to { transform: translateY(0); }
}

/* ==========================================================================
   DESKTOP GRID LAYOUT - PRESERVED FOR LARGER SCREENS
   ========================================================================== */

/* Ensure desktop grid layout is maintained for screens 769px and above */
@media (min-width: 769px) {
    .cart-item {
        display: grid !important;
        grid-template-columns: 100px 1fr 120px 140px 120px 60px !important;
        grid-gap: 15px !important;
        flex-direction: row !important;
        text-align: left !important;
        padding: 15px 20px !important;
        align-items: center !important;
        background: white;
        border-radius: 8px;
        margin-bottom: 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .cart-header {
        display: grid !important;
        grid-template-columns: 100px 1fr 120px 140px 120px 60px !important;
        grid-gap: 15px !important;
        align-items: center !important;
        padding: 15px 20px !important;
        background: #f8f9fa;
        border-radius: 8px;
        margin-bottom: 20px;
        font-weight: bold;
    }
    
    /* Ensure grid cells don't override the layout */
    .cart-item .item-image-cell,
    .cart-item .item-info-cell,
    .cart-item .item-price-cell,
    .cart-item .item-quantity-cell,
    .cart-item .item-total-cell,
    .cart-item .item-actions-cell {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* ==========================================================================
   MOBILE RESPONSIVE DESIGN
   ========================================================================== */

/* Tablet devices (768px and below) - MOBILE/TABLET ONLY */
@media (max-width: 768px) {
    .header {
        margin-left: 10px;
        margin-right: 10px;
        padding: 15px;
    }
    
    .cart-summary {
        margin: 20px 10px;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .cart-item img {
        margin-bottom: 15px;
    }
    
    .cart-item-info {
        margin-left: 0;
        margin-bottom: 15px;
    }
    
    .cart-item-controls {
        justify-content: center;
        margin-top: 15px;
    }
    
    /* Modal responsiveness for tablets */
    .modal-content {
        padding: 25px;
        margin: 15px;
        width: 95%;
        max-width: none;
    }
    
    /* PayPal modal optimizations for tablet */
    #paypal-direct-modal .modal-content {
        max-width: none;
        width: 95%;
    }
    
    #paypal-direct-modal .btn-primary,
    #paypal-direct-modal .btn-secondary,
    #paypal-direct-modal .btn-success {
        min-width: 180px;
        margin: 5px;
    }
}

/* Large mobile devices (480px to 768px) */
@media (max-width: 768px) and (min-width: 481px) {
    .modal-content {
        padding: 25px;
    }
    
    #paypal-direct-modal .modal-content {
        padding: 30px 25px;
    }
    
    #paypal-direct-modal h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    #paypal-direct-modal .btn-primary,
    #paypal-direct-modal .btn-secondary,
    #paypal-direct-modal .btn-success {
        padding: 14px 20px;
        font-size: 15px;
        min-width: 160px;
    }
}

/* Small mobile devices (480px and below) */
@media (max-width: 480px) {
    .back-btn,
    .back-to-shop {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
        border-radius: 8px;
    }
    
    .header h1 {
        font-size: 24px;
        text-align: center;
    }
    
    /* Enhanced mobile modal */
    .modal-content {
        padding: 20px;
        margin: 10px;
        width: calc(100% - 20px);
        border-radius: 12px;
    }
    
    /* PayPal modal mobile optimizations */
    #paypal-direct-modal .modal-content {
        padding: 20px 15px;
        max-height: 95vh;
        overflow-y: auto;
    }
    
    #paypal-direct-modal h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
        line-height: 1.3;
    }
    
    #paypal-direct-modal p {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 15px;
    }
    
    /* Mobile-first button layout */
    #paypal-direct-modal .btn-primary,
    #paypal-direct-modal .btn-secondary,
    #paypal-direct-modal .btn-success {
        width: 100%;
        margin: 8px 0;
        padding: 16px 20px;
        font-size: 16px;
        min-width: auto;
        justify-content: center;
        border-radius: 10px;
    }
    
    /* Stack buttons vertically on mobile */
    #paypal-direct-modal .modal-content > div:last-child {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 25px;
    }
    
    /* Order info box mobile optimization */
    #paypal-direct-modal div[style*="background: #f8f9fa"] {
        padding: 15px !important;
        margin: 15px 0 !important;
        border-radius: 6px !important;
        font-size: 14px;
    }
    
    #paypal-direct-modal div[style*="background: #f8f9fa"] h4 {
        font-size: 16px;
        margin-bottom: 12px !important;
    }
    
    #paypal-direct-modal div[style*="background: #f8f9fa"] div {
        margin-bottom: 8px;
        word-break: break-word;
    }
}

/* Extra small devices (360px and below) */
@media (max-width: 360px) {
    .modal-content {
        margin: 5px;
        padding: 15px;
        width: calc(100% - 10px);
    }
    
    #paypal-direct-modal .modal-content {
        padding: 15px 10px;
    }
    
    #paypal-direct-modal h2 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    #paypal-direct-modal .btn-primary,
    #paypal-direct-modal .btn-secondary,
    #paypal-direct-modal .btn-success {
        padding: 14px 15px;
        font-size: 15px;
    }
    
    /* Ultra-compact order info */
    #paypal-direct-modal div[style*="background: #f8f9fa"] {
        padding: 12px !important;
        font-size: 13px;
    }
    
    #paypal-direct-modal div[style*="background: #f8f9fa"] h4 {
        font-size: 15px;
    }
}

/* Landscape orientation optimization for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .modal-content {
        max-height: 85vh;
        overflow-y: auto;
    }
    
    #paypal-direct-modal .modal-content {
        max-height: 90vh;
        padding: 20px;
    }
    
    #paypal-direct-modal h2 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    #paypal-direct-modal .btn-primary,
    #paypal-direct-modal .btn-secondary,
    #paypal-direct-modal .btn-success {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* High DPI display optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    #paypal-direct-modal .modal-content {
        box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
    }
    
    #paypal-direct-modal .btn-primary,
    #paypal-direct-modal .btn-secondary,
    #paypal-direct-modal .btn-success {
        font-weight: 600;
    }
}
    
    /* Hide header on mobile for cleaner look */
    .cart-header {
        display: none;
    }
    
    /* Switch to mobile card layout */
    .cart-item {
        display: block;
        padding: 20px;
        border-radius: 8px;
        margin-bottom: 15px;
        background: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .item-image-cell {
        text-align: center;
        margin-bottom: 15px;
    }
    
    .item-image {
        width: 100px;
        height: 100px;
    }
    
    .item-info-cell {
        text-align: center;
        margin-bottom: 15px;
        padding-left: 0;
    }
    
    .item-name {
        font-size: 18px;
    }
    
    .item-price-cell,
    .item-quantity-cell,
    .item-total-cell {
        text-align: center;
        margin-bottom: 15px;
        padding: 10px;
        background: rgba(210, 105, 30, 0.05);
        border-radius: 6px;
        margin: 8px 0;
    }
    
    .item-actions-cell {
        text-align: center;
        margin-top: 15px;
    }
    
    .summary-row {
        font-size: 16px;
    }
    
    .total-row {
        font-size: 18px;
    }
    
    .payment-option,
    .delivery-option {
        padding: 12px 15px;
    }
    
    .modal-content {
        padding: 20px;
        margin: 20px;
    }
}

@media (max-width: 480px) {
    .back-btn,
    .back-to-shop {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
        border-radius: 8px;
    }
    
    .header h1 {
        font-size: 24px;
        text-align: center;
    }
    
    /* Fix tax label line breaking on mobile */
    .summary-row {
        flex-wrap: nowrap;
        align-items: flex-start;
    }
    
    .summary-row span {
        white-space: nowrap;
    }
    
    /* Make tax labels shorter on mobile to prevent wrapping */
    #shipping-tax-label {
        font-size: 0.8em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 60%;
    }
    
    #product-tax-label {
        font-size: 0.8em;
        white-space: nowrap;
    }
    
    /* Ensure currency values don't wrap */
    #cart-shipping-tax,
    #cart-product-tax {
        white-space: nowrap;
        flex-shrink: 0;
        min-width: auto;
    }
}

/* ==========================================================================
   SUCCESS MODAL DIALOG
   ========================================================================== */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.success-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.success-icon {
    text-align: center;
    margin-bottom: 20px;
}

.success-icon i {
    font-size: 64px;
    color: #28a745;
    animation: successPulse 1s ease-in-out;
}

@keyframes successPulse {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.success-title {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.success-message {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 25px;
    text-align: center;
}

.bank-details {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    padding: 25px;
    margin: 25px 0;
    border: 2px solid #dee2e6;
}

.bank-details h4 {
    color: #D2691E;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.bank-details h4 i {
    margin-right: 8px;
}

.bank-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.bank-label {
    font-weight: 600;
    color: #495057;
    min-width: 100px;
}

.bank-value {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #333;
    margin: 0 15px;
    padding: 5px 8px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.copy-btn {
    background: #D2691E;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #FF8C00;
    transform: scale(1.05);
}

.copy-btn i {
    margin-right: 4px;
}

.success-actions {
    text-align: center;
    margin-top: 30px;
}

.order-number {
    text-align: center;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 2px solid #2196f3;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    font-size: 16px;
    font-weight: bold;
    color: #1976d2;
}

.order-number i {
    margin-right: 8px;
    color: #2196f3;
}

.discount-highlight {
    text-align: center;
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    border: 2px solid #4caf50;
    border-radius: 8px;
    padding: 12px;
    margin: 15px 0;
    font-size: 14px;
    font-weight: 600;
    color: #2e7d32;
}

.discount-highlight i {
    margin-right: 8px;
    color: #4caf50;
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-success:hover {
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

/* Mobile responsiveness for success modal */
@media (max-width: 768px) {
    .success-content {
        padding: 20px;
        margin: 20px;
    }
    
    .success-icon i {
        font-size: 48px;
    }
    
    .success-title {
        font-size: 22px;
    }
    
    .bank-field {
        flex-direction: column;
        align-items: stretch;
    }
    
    .bank-label {
        margin-bottom: 5px;
    }
    
    .bank-value {
        margin: 5px 0;
    }
    
    .copy-btn {
        margin-top: 5px;
        align-self: stretch;
    }
}

/* ==========================================================================
   FORM ACTIONS & DIALOG BUTTONS
   ========================================================================== */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* Make primary button more prominent */
.form-actions .btn-primary {
    order: 1; /* Ensure primary button comes first visually */
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    font-size: 16px;
    padding: 14px 28px;
    min-width: 180px;
}

.form-actions .btn-primary:hover {
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.5);
}

/* Make secondary button less prominent */
.form-actions .btn-secondary {
    order: 2;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
    font-size: 14px;
    padding: 12px 24px;
    min-width: 120px;
}

.form-actions .btn-secondary:hover {
    background: linear-gradient(135deg, #495057 0%, #6c757d 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.4);
}

/* Mobile responsive form actions */
@media (max-width: 768px) {
    .form-actions {
        flex-direction: column-reverse;
        gap: 10px;
    }
    
    .form-actions .btn-primary,
    .form-actions .btn-secondary {
        width: 100%;
        min-width: auto;
    }
    
    .form-actions .btn-primary {
        order: 1; /* Primary button on top on mobile */
    }
    
    .form-actions .btn-secondary {
        order: 2; /* Secondary button below on mobile */
    }
}
