/* MAGOODS CYBER CART OVERRIDES (Standard Cart) - V4 PRO */

/*
 * Phase 2 note: shared shell/header styles now live in custom_header.css.
 * This file is kept for cart-specific presentation only.
 */

/* 2. Main Cart Wrapper */
#order-standard_cart {
    font-family: var(--font-family-sans-serif, sans-serif);
    color: #e6f6ff;
    padding-top: 2rem;
}

/* Titles */
#order-standard_cart .header-lined {
    border-bottom: 2px solid var(--primary-light, #00a8e8) !important;
    margin-bottom: 2rem;
}

#order-standard_cart .header-lined h1 {
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 168, 232, 0.5);
    font-size: 2rem;
}

/* 3. Products & Panels (Glassmorphism) */
#order-standard_cart .products .product,
#order-standard_cart .domains .domain-box,
#order-standard_cart .panel,
#order-standard_cart .cart-body .item {
    background: rgba(0, 25, 40, 0.7) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 168, 232, 0.2) !important;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 4. Inputs & Forms */
#order-standard_cart input.form-control,
#order-standard_cart select.form-control,
#order-standard_cart textarea.form-control {
    background: rgba(0, 15, 25, 0.6) !important;
    border: 1px solid rgba(0, 168, 232, 0.3) !important;
    color: #fff !important;
    border-radius: 6px;
    height: auto;
    padding: 10px 15px;
}

#order-standard_cart input.form-control:focus {
    border-color: #00c9ff !important;
    box-shadow: 0 0 10px rgba(0, 201, 255, 0.3);
    background: rgba(0, 20, 30, 0.8) !important;
}

#order-standard_cart select option {
    background: #032b43;
    color: white;
}

#order-standard_cart .field-icon {
    color: #00a8e8;
    top: 12px;
}

#order-standard_cart .prepend-icon {
    padding-left: 0;
}

#order-standard_cart label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* 5. Existing User Login Box & Account Select */
#containerExistingUserSignin {
    background: rgba(0, 40, 60, 0.4);
    border: 1px solid #00a8e8;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

#containerExistingUserSignin .sub-heading {
    margin-top: 0;
}

/* Account Selection Cards */
.account-select-container .account {
    background: rgba(0, 25, 40, 0.6);
    border: 1px solid rgba(0, 168, 232, 0.2);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    color: white;
}

.account-select-container .account label {
    width: 100%;
    cursor: pointer;
    margin: 0;
}

.account-select-container .account.active {
    background: rgba(0, 168, 232, 0.15);
    border-color: #00c9ff;
    box-shadow: 0 0 15px rgba(0, 168, 232, 0.2);
}

.account-select-container .account:hover {
    background: rgba(0, 168, 232, 0.1);
}

/* 6. Payment Methods (Cards) */
#paymentGatewaysContainer .radio-inline {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 168, 232, 0.2);
    padding: 10px 20px;
    border-radius: 8px;
    margin: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

#paymentGatewaysContainer .radio-inline:hover {
    background: rgba(0, 168, 232, 0.1);
    border-color: #00a8e8;
}

/* 7. Order Summary & Totals */
#order-standard_cart .order-summary {
    background: rgba(0, 15, 20, 0.9) !important;
    border: 1px solid #00a8e8 !important;
    box-shadow: 0 0 25px rgba(0, 168, 232, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    color: white;
    position: sticky;
    top: 20px;
}

/* For Sidebars */
#order-standard_cart .order-summary .total-due-today .amt {
    font-family: 'Orbitron', sans-serif;
    color: #00ff88;
    font-size: 2rem;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
    display: block;
    margin-bottom: 5px;
}

/* For Checkout Page Alert */
#totalDueToday {
    background: linear-gradient(135deg, rgba(0, 210, 106, 0.2) 0%, rgba(0, 168, 232, 0.2) 100%) !important;
    border: 1px solid #00ff88 !important;
    color: #e6f6ff !important;
    font-size: 1.5rem !important;
    font-family: 'Orbitron', sans-serif;
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    border-radius: 12px;
}

#totalDueToday strong {
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    font-size: 1.8rem;
    vertical-align: middle;
}

/* 8. Buttons */
#order-standard_cart .order-summary .btn-checkout,
#btnCompleteOrder {
    background: linear-gradient(135deg, #00ff88 0%, #00a8e8 100%) !important;
    border: none !important;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
    border-radius: 50px;
    color: #001f3f !important;
    transition: all 0.3s ease;
}

#btnCompleteOrder {
    padding: 15px 40px;
    font-size: 1.2rem;
    width: 100%;
    margin-top: 20px;
}

#btnCompleteOrder:hover,
#order-standard_cart .order-summary .btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(0, 255, 136, 0.6);
}

/* 9. Alerts */
#order-standard_cart .alert-danger {
    background: rgba(255, 0, 50, 0.2) !important;
    border: 1px solid #ff0033 !important;
    color: #ffcccc !important;
}

#order-standard_cart .alert-info {
    background: rgba(0, 168, 232, 0.2) !important;
    border: 1px solid #00a8e8 !important;
    color: #e6f6ff !important;
}

/* Safety: Hide Empty or Hidden Alerts */
#order-standard_cart .alert:empty,
#order-standard_cart .alert.w-hidden,
#order-standard_cart .alert.hidden {
    display: none !important;
}

/* 10. Secondary Sidebar (Categories) */
.cart-sidebar .list-group-item {
    background: rgba(0, 25, 40, 0.8) !important;
    border: 1px solid rgba(0, 168, 232, 0.15) !important;
    color: rgba(255, 255, 255, 0.8);
}

.cart-sidebar .list-group-item.active {
    background: #007ea7 !important;
    color: #fff !important;
    border-color: #00c9ff !important;
    box-shadow: 0 0 10px rgba(0, 126, 167, 0.5);
}

.cart-sidebar .list-group-item:hover {
    background: rgba(0, 168, 232, 0.1) !important;
    color: #fff;
}

/* 11. International Phone Input Fixes */
.intl-tel-input .country-list {
    background-color: #032b43 !important;
    border: 1px solid #00a8e8 !important;
    color: #fff !important;
    scrollbar-color: #00a8e8 #032b43;
}

.intl-tel-input .country-list .country.highlight {
    background-color: #007ea7 !important;
}

.intl-tel-input .country-list .country .dial-code {
    color: #aaa !important;
}

.intl-tel-input .selected-flag .iti-arrow {
    border-top-color: #00a8e8 !important;
}

/* 12. iCheck Adjustment */
.iradio_square-blue,
.icheckbox_square-blue {
    transform: scale(1.2);
    margin-right: 8px !important;
}

/* 13. Sub-headings (Fixing Strikethrough) */
#order-standard_cart .sub-heading {
    border-bottom: none !important;
    /* Remove line going through text */
    margin: 30px 0 20px 0;
    text-align: center;
    height: auto !important;
    position: relative;
}

#order-standard_cart .sub-heading span {
    background: transparent !important;
    color: #00c9ff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    padding: 10px 20px;
    display: inline-block;
    border-bottom: 2px solid #00a8e8;
    /* Line UNDER text */
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 168, 232, 0.4);
}

/* 14. Input Group Addons */
#order-standard_cart .input-group-btn .btn {
    background: rgba(0, 40, 60, 0.6) !important;
    border: 1px solid rgba(0, 168, 232, 0.3) !important;
    color: #00a8e8 !important;
    height: 100%;
}

/* 15. Domain Renewals Reforge */
#order-standard_cart.mgp-domain-renew-shell {
    padding-top: 1.25rem;
}

#order-standard_cart.mgp-domain-renew-shell .cart-sidebar,
#order-standard_cart.mgp-domain-renew-shell .sidebar-categories-collapsed {
    display: none !important;
}

#order-standard_cart.mgp-domain-renew-shell .cart-body {
    width: 100% !important;
    max-width: 100%;
    flex: 0 0 100%;
}

#order-standard_cart.mgp-domain-renew-shell .mgp-domain-renew-hero {
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 168, 232, 0.24) !important;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(0, 34, 52, 0.72), rgba(0, 14, 22, 0.9));
    padding: 18px 20px;
}

#order-standard_cart.mgp-domain-renew-shell .mgp-domain-renew-hero__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

#order-standard_cart.mgp-domain-renew-shell .mgp-domain-renew-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #f3fcff;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#order-standard_cart.mgp-domain-renew-shell .mgp-domain-renew-title i {
    color: #79d9ff;
    font-size: 0.8em;
}

#order-standard_cart.mgp-domain-renew-shell .mgp-domain-renew-subtitle {
    margin: 10px 0 0;
    color: rgba(220, 244, 255, 0.78);
    font-size: 13px;
}

#order-standard_cart.mgp-domain-renew-shell .mgp-domain-renew-filter-wrap {
    min-width: min(320px, 100%);
}

#order-standard_cart.mgp-domain-renew-shell #domainRenewalFilter {
    border-radius: 11px;
    border-color: rgba(0, 168, 232, 0.3) !important;
    background: rgba(0, 18, 28, 0.72) !important;
}

#order-standard_cart.mgp-domain-renew-shell .mgp-domain-renew-layout {
    gap: 14px;
}

#order-standard_cart.mgp-domain-renew-shell .secondary-cart-body {
    display: grid;
    gap: 12px;
}

#order-standard_cart.mgp-domain-renew-shell .domain-renewals {
    display: grid;
    gap: 12px;
}

#order-standard_cart.mgp-domain-renew-shell .mgp-domain-renewal-card {
    position: relative;
    padding: 18px;
    border-radius: 14px;
    border: 1px solid rgba(0, 168, 232, 0.22);
    background: rgba(0, 22, 34, 0.82);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

#order-standard_cart.mgp-domain-renew-shell .mgp-domain-renewal-card__domain {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    color: #ecf9ff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 20px;
    line-height: 1.4;
}

#order-standard_cart.mgp-domain-renew-shell .mgp-domain-renewal-card__domain i {
    color: #66d3ff;
    font-size: 0.8em;
}

#order-standard_cart.mgp-domain-renew-shell .mgp-domain-renewal-card__meta {
    margin: 0 0 12px;
    color: rgba(223, 246, 255, 0.74);
}

#order-standard_cart.mgp-domain-renew-shell .domain-renewal-desc {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(0, 210, 106, 0.24);
    background: rgba(0, 210, 106, 0.08);
    color: #bbffd3;
}

#order-standard_cart.mgp-domain-renew-shell .domain-renewal .label {
    border-radius: 999px;
    padding: 6px 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

#order-standard_cart.mgp-domain-renew-shell .select-renewal-pricing {
    border-radius: 10px;
    min-height: 42px;
}

#order-standard_cart.mgp-domain-renew-shell .mgp-domain-renewal-card__actions {
    margin-top: 14px;
}

#order-standard_cart.mgp-domain-renew-shell .mgp-domain-renewal-card__add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 10px;
}

#order-standard_cart.mgp-domain-renew-shell .order-summary {
    border-radius: 14px;
}

#order-standard_cart.mgp-domain-renew-shell .mgp-domain-renew-go-cart {
    margin-top: 10px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

@media (max-width: 991px) {
    #order-standard_cart.mgp-domain-renew-shell .mgp-domain-renew-hero {
        padding: 14px;
    }

    #order-standard_cart.mgp-domain-renew-shell .mgp-domain-renew-filter-wrap {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 767px) {
    #order-standard_cart.mgp-domain-renew-shell .mgp-domain-renew-title {
        font-size: 22px;
    }

    #order-standard_cart.mgp-domain-renew-shell .mgp-domain-renewal-card {
        padding: 14px;
    }

    #order-standard_cart.mgp-domain-renew-shell .mgp-domain-renewal-card__domain {
        font-size: 16px;
    }

    #order-standard_cart.mgp-domain-renew-shell .mgp-domain-renewal-card .pull-right {
        float: none !important;
        margin-bottom: 10px;
        text-align: left;
    }

        #order-standard_cart.mgp-domain-renew-shell .mgp-domain-renewal-card__actions .btn {
        width: 100%;
    }
}

/* ================================================================
   RTL / ARABIC — FULL CART SUPPORT
   ================================================================ */

/* Headings & labels */
/* Sub-headings */
/* Flip .text-right → left in RTL so buttons appear on the correct side */
/* Form inputs */
/* iCheck spacing flip */
/* Products & panels */
/* Keep price/amount values LTR for readability */
/* Order summary */
/* Total due today alert */
/* Alerts */
/* Category sidebar */
/* Payment gateways */
/* Account selection */
/* Domain tabs */
/* Store order page (order.tpl) */
/* Flip the "back" arrow icon in RTL */
/* Upsell / promoted product */
