/**
 * AFRICLOUD Order Form Custom Styles
 *
 * Minimal branding customisation for standard_cart template
 *
 * Brand Colors:
 * - AFRICLOUD Blue: #1e40af
 * - AFRICLOUD Orange: #ea580c
 * - AFRICLOUD Teal: #0d9488
 *
 * Font: Inter
 */

/* Import Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Base font family */
#order-standard_cart,
#order-standard_cart * {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ========================================
   SIDEBAR HIDE & FULL-WIDTH LAYOUT
   ======================================== */

/* Hide sidebar completely */
#order-standard_cart .cart-sidebar {
    display: none !important;
}

/* Make cart body full width */
#order-standard_cart .cart-body {
    width: 100% !important;
    float: none !important;
    max-width: 900px;
    margin: 0 auto;
}

/* Also hide the collapsed sidebar on mobile */
#order-standard_cart .sidebar-collapsed {
    display: none !important;
}

/* ========================================
   ENHANCED CART UI
   ======================================== */

/* Main container */
#order-standard_cart {
    background-color: #f9fafb;
    padding: 30px 20px 50px;
}

/* Page headers */
#order-standard_cart .header-lined {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

#order-standard_cart .header-lined h1 {
    color: #1e40af;
    font-weight: 700;
}

/* Primary buttons - AFRICLOUD Orange */
#order-standard_cart .btn-primary,
#order-standard_cart .btn-success {
    background-color: #ea580c;
    border-color: #ea580c;
    color: #ffffff;
    font-weight: 600;
    transition: all 0.2s ease;
    border-radius: 6px;
    padding: 10px 20px;
}

#order-standard_cart .btn-primary:hover,
#order-standard_cart .btn-primary:focus,
#order-standard_cart .btn-success:hover,
#order-standard_cart .btn-success:focus {
    background-color: #c2410c;
    border-color: #c2410c;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(234, 88, 12, 0.25);
}

/* Secondary/Info buttons - AFRICLOUD Blue */
#order-standard_cart .btn-info,
#order-standard_cart .btn-default {
    background-color: #1e40af;
    border-color: #1e40af;
    color: #ffffff;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 6px;
}

#order-standard_cart .btn-info:hover,
#order-standard_cart .btn-info:focus,
#order-standard_cart .btn-default:hover,
#order-standard_cart .btn-default:focus {
    background-color: #1e3a8a;
    border-color: #1e3a8a;
    color: #ffffff;
}

/* Links - AFRICLOUD Blue */
#order-standard_cart a {
    color: #1e40af;
}

#order-standard_cart a:hover,
#order-standard_cart a:focus {
    color: #1e3a8a;
}

/* Panel headers - AFRICLOUD Blue */
#order-standard_cart .panel-heading,
#order-standard_cart .panel-default > .panel-heading,
#order-standard_cart .card-header {
    background-color: #1e40af;
    border-color: #1e40af;
    color: #ffffff;
    border-radius: 8px 8px 0 0;
}

#order-standard_cart .panel-default,
#order-standard_cart .card {
    border-color: #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Order summary sidebar */
#order-standard_cart .order-summary {
    border-color: #1e40af;
    border-radius: 8px;
    overflow: hidden;
}

#order-standard_cart .order-summary .order-summary-header,
#order-standard_cart .summary-container .header {
    background-color: #1e40af;
    color: #ffffff;
}

/* Product selection cards */
#order-standard_cart .product {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.2s ease;
    background: #ffffff;
    margin-bottom: 20px;
    overflow: hidden;
}

#order-standard_cart .product:hover {
    border-color: #1e40af;
    box-shadow: 0 8px 16px -4px rgba(30, 64, 175, 0.15);
    transform: translateY(-2px);
}

#order-standard_cart .product.product-selected,
#order-standard_cart .product.selected {
    border-color: #ea580c;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.2);
}

#order-standard_cart .product header {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: #ffffff;
    padding: 15px 20px;
}

#order-standard_cart .product header span {
    color: #ffffff;
}

#order-standard_cart .product footer {
    background: #f9fafb;
    padding: 15px 20px;
    border-top: 1px solid #e5e7eb;
}

/* Pricing highlight */
#order-standard_cart .product-pricing,
#order-standard_cart .price {
    color: #1e40af;
    font-weight: 700;
    font-size: 1.25em;
}

/* Order Now button in product cards */
#order-standard_cart .btn-order-now {
    background-color: #ea580c;
    border-color: #ea580c;
    color: #ffffff;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 6px;
}

#order-standard_cart .btn-order-now:hover {
    background-color: #c2410c;
    border-color: #c2410c;
}

/* Form inputs */
#order-standard_cart .form-control {
    border-radius: 6px;
    border: 1px solid #d1d5db;
    padding: 10px 12px;
}

#order-standard_cart .form-control:focus {
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.15);
}

/* Select dropdowns */
#order-standard_cart select.form-control {
    background-color: #ffffff;
}

/* Product info section */
#order-standard_cart .product-info {
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

#order-standard_cart .product-info .product-title {
    color: #1e40af;
    font-weight: 700;
    font-size: 1.2em;
    margin-bottom: 8px;
}

/* Configurable options */
#order-standard_cart .config-option,
#order-standard_cart .panel-configurable-options .panel-body {
    padding: 15px;
}

#order-standard_cart .config-option.selected,
#order-standard_cart .configurable-option-field.selected {
    border-color: #1e40af;
    background-color: #eff6ff;
    border-radius: 6px;
}

/* Progress/steps indicator */
#order-standard_cart .progress-bar {
    background-color: #1e40af;
}

/* Alerts */
#order-standard_cart .alert {
    border-radius: 8px;
    border-width: 1px;
}

#order-standard_cart .alert-success {
    background-color: #ecfdf5;
    border-color: #0d9488;
    color: #065f46;
}

#order-standard_cart .alert-info {
    background-color: #eff6ff;
    border-color: #1e40af;
    color: #1e3a8a;
}

#order-standard_cart .alert-warning {
    background-color: #fffbeb;
    border-color: #f59e0b;
    color: #92400e;
}

#order-standard_cart .alert-danger {
    background-color: #fef2f2;
    border-color: #dc2626;
    color: #991b1b;
}

/* Table styling */
#order-standard_cart .table {
    border-radius: 8px;
    overflow: hidden;
}

#order-standard_cart .table > thead > tr > th {
    background-color: #f3f4f6;
    border-bottom-color: #e5e7eb;
    color: #374151;
    font-weight: 600;
    padding: 12px 15px;
}

#order-standard_cart .table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #f9fafb;
}

#order-standard_cart .table > tbody > tr > td {
    padding: 12px 15px;
    vertical-align: middle;
}

/* Cart items header */
#order-standard_cart .view-cart-items-header {
    background-color: #1e40af;
    color: #ffffff;
    padding: 12px 15px;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
}

/* Cart item rows */
#order-standard_cart .view-cart-items .item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-top: none;
    padding: 15px;
}

#order-standard_cart .view-cart-items .item:last-child {
    border-radius: 0 0 8px 8px;
}

/* Cart totals */
#order-standard_cart .total-due-today {
    background-color: #1e40af;
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
}

#order-standard_cart .total-due-today .amt {
    font-weight: 700;
    font-size: 1.3em;
}

/* Promo code section */
#order-standard_cart .promo-code,
#order-standard_cart .promocode-input {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
}

/* Checkout button */
#order-standard_cart #btnCompleteOrder,
#order-standard_cart .btn-checkout,
#order-standard_cart [name="checkout"] {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    border-color: #ea580c;
    font-size: 18px;
    font-weight: 700;
    padding: 15px 30px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(234, 88, 12, 0.25);
}

#order-standard_cart #btnCompleteOrder:hover,
#order-standard_cart .btn-checkout:hover,
#order-standard_cart [name="checkout"]:hover {
    background: linear-gradient(135deg, #c2410c 0%, #9a3412 100%);
    border-color: #c2410c;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(234, 88, 12, 0.3);
}

/* Continue Shopping button */
#order-standard_cart .btn-continue-shopping {
    background-color: transparent;
    border: 2px solid #1e40af;
    color: #1e40af;
    font-weight: 600;
}

#order-standard_cart .btn-continue-shopping:hover {
    background-color: #1e40af;
    color: #ffffff;
}

/* Category sidebar (if shown) */
#order-standard_cart .list-group-item.active {
    background-color: #1e40af;
    border-color: #1e40af;
}

/* Badge/label styling */
#order-standard_cart .label-success,
#order-standard_cart .badge-success {
    background-color: #0d9488;
}

#order-standard_cart .label-primary,
#order-standard_cart .badge-primary {
    background-color: #1e40af;
}

/* Domain availability */
#order-standard_cart .domain-available {
    color: #0d9488;
}

#order-standard_cart .domain-unavailable {
    color: #dc2626;
}

/* Well/info boxes */
#order-standard_cart .well {
    border-radius: 8px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
}

/* Secondary cart body & sidebar layout improvements */
#order-standard_cart .secondary-cart-body {
    width: 60%;
}

#order-standard_cart .secondary-cart-sidebar {
    width: 40%;
}

/* Order summary improvements */
#order-standard_cart .order-summary,
#order-standard_cart .summary-container {
    background: #ffffff;
    border: 2px solid #1e40af;
    border-radius: 12px;
    overflow: hidden;
}

#order-standard_cart .summary-container .summary-row {
    padding: 10px 15px;
    border-bottom: 1px solid #e5e7eb;
}

#order-standard_cart .summary-container .summary-row:last-child {
    border-bottom: none;
}

#order-standard_cart .summary-container .total-row {
    background: #eff6ff;
    font-weight: 700;
    color: #1e40af;
}

/* Mobile responsiveness improvements */
@media (max-width: 991px) {
    #order-standard_cart .secondary-cart-body {
        width: 100%;
        float: none;
    }
    
    #order-standard_cart .secondary-cart-sidebar {
        width: 100%;
        max-width: 400px;
        margin: 30px auto 0;
        float: none;
    }
}

@media (max-width: 768px) {
    #order-standard_cart {
        padding: 20px 15px 40px;
    }
    
    #order-standard_cart .btn-primary,
    #order-standard_cart .btn-success,
    #order-standard_cart #btnCompleteOrder {
        width: 100%;
        margin-bottom: 10px;
    }
    
    #order-standard_cart .product {
        margin-bottom: 15px;
    }
    
    #order-standard_cart .product header {
        padding: 12px 15px;
    }
    
    #order-standard_cart .product footer {
        padding: 12px 15px;
    }
}
