/* Custom Mizizi Styles */

/* Site Layout Styles - Overriding main.css styles with higher specificity */
/* Note: Original body style is in main.css, we're just adding specificity and additional properties */
html body {
    background: #f6f6fc !important; /* Override for consistency */
    position: relative !important;
    overflow-x: hidden !important;
}

/* Note: Original oz-body-wrap style is in main.css, we're just adding specificity and additional properties */
html .oz-body-wrap {
    /* These properties are already in main.css, no need to repeat:
    box-shadow: 0px 0px 50px 0px rgba(0, 0, 0, 0.2);
    margin: 50px;
    position: relative; */
    display: block !important; /* Additional property */
    width: auto !important; /* Additional property */
    height: auto !important; /* Additional property */
    overflow: visible !important; /* Additional property */
}

/* Media queries are already in main.css, no need to repeat them */

/* Hide loader wrapper after animation - This is unique to mizizi-styles.css */
#loader-wrapper.hidden {
    display: none !important;
}

/* Loader Styles - Only add properties not in main.css */
/* Note: Basic #loader-wrapper styles are already in main.css */
#loader-wrapper {
    /* These properties are unique to mizizi-styles.css: */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Rest of the loader styles that are unique to mizizi-styles.css */
.loader-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f9f9f9;
    z-index: -1;
}

.splash-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.splash {
    position: absolute;
    background-image: url('../../img/Loader/Splash Element.png') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    opacity: 0;
    z-index: 1;
    transform-origin: center center;
}

.splash-1 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    width: 0;
    height: 0;
}

.splash-2 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(120deg);
    width: 0;
    height: 0;
}

.splash-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(240deg);
    width: 0;
    height: 0;
}

.loader-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: auto;
    opacity: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-logo img {
    max-width: 100%;
    max-height: 100%;
}

.logo-reveal {
    animation: fadeIn 1s ease-in forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes splashEffect {
    0% { width: 0; height: 0; opacity: 0; }
    50% { opacity: 0.7; }
    100% { width: 500px; height: 500px; opacity: 0.4; transform: translate(-50%, -50%) rotate(15deg); }
}

@keyframes splashEffectRight {
    0% { width: 0; height: 0; opacity: 0; }
    50% { opacity: 0.7; }
    100% { width: 500px; height: 500px; opacity: 0.4; transform: translate(-50%, -50%) rotate(-15deg); }
}

@keyframes fadeOutElements {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Success Alert */
.success-alert {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.success-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.success-content h2 {
    color: var(--brand-primary);
    margin-bottom: 15px;
}

.success-content button {
    padding: 10px 20px;
    background-color: var(--brand-primary);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.success-content button:hover {
    background-color: #747a22;
}

/* Select Wrapper */
.select-wrapper {
    display: none;
    margin-bottom: 15px;
}

/* Enhanced order details styling */
.enhanced-order-details {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #e0e0e0;
}

.enhanced-order-details p {
    margin-bottom: 12px;
    font-size: 15px;
    border-bottom: 1px dashed #e0e0e0;
    padding-bottom: 10px;
}

.enhanced-order-details p:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.enhanced-order-details strong {
    color: #555;
    font-weight: 600;
    display: inline-block;
    min-width: 120px;
}

.text-center {
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
    
    .form-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .form-col.col-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Orders page styles */
.orders-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.orders-table th, .orders-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.orders-table th {
    background-color: #f2f2f2;
}

.orders-table tr:hover {
    background-color: #f5f5f5;
}

.order-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-confirmed {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-preparing {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status-out-for-delivery {
    background-color: #e2e3ff;
    color: #383d41;
    border: 1px solid #c7c8ff;
}

.status-delivered {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Payment Status Badges */
.payment-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-unpaid {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.payment-partial {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.payment-paid {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Order details in modals */
.order-summary {
    line-height: 1.6;
}

.order-summary p {
    margin-bottom: 8px;
}

.order-summary strong {
    color: #333;
}

/* Responsive adjustments for status badges */
@media (max-width: 768px) {
    .order-status,
    .payment-status {
        font-size: 10px;
        padding: 2px 8px;
    }
}

/* ===== DUPLICATE MODAL STYLES MOVED TO shared.css (end) ===== */

/* Rest of the custom form and modal styles */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;
    margin-bottom: 15px;
}

.form-col {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 10px;
    box-sizing: border-box;
}

/* Three-column layout for forms */
.form-col.col-3 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    padding: 0 10px;
    box-sizing: border-box;
}

/* Map container styling */
.map-container {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

#delivery-map {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

/* Address suggestions */
.address-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 0 0 10px 10px;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.address-suggestion-item {
    padding: 8px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.address-suggestion-item:hover {
    background-color: #f9f9f9;
}

.address-suggestion-item:last-child {
    border-bottom: none;
}

/* Order summary in the modal */
.order-summary {
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 15px;
    font-size: 14px;
    border: 1px solid #e0e0e0;
}

.order-summary h4 {
    font-size: 18px;
    color: var(--brand-primary);
    margin-bottom: 10px;
    text-align: center;
    font-weight: 600;
}

/* Summary details styles */
.summary-details {
    padding: 5px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    font-weight: 500;
    color: #555;
}

.summary-value {
    font-weight: 600;
}

.total-row {
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid #e0e0e0;
    font-size: 18px;
}

.total-row .summary-label,
.total-row .summary-value {
    font-weight: 700;
    color: var(--brand-primary);
}

/* Success Alert */

/* Success Alert */ 