/* Al-Momtaz customer surfaces only. Loaded by the site and web customer layouts. */
html.almumtaz-customer-portal {
    --cp-ink: #2e3044;
    --cp-muted: #687084;
    --cp-primary: #282860;
    --cp-primary-hover: #20204a;
    --cp-accent: #d08028;
    --cp-border: #e5e2e8;
    --cp-surface: #fff;
    --cp-page: #f8f7f5;
    --cp-focus: #d08028;
    color: var(--cp-ink);
    background: var(--cp-page);
    color-scheme: light;
}

html.almumtaz-customer-portal body.customer-portal {
    margin: 0;
    padding: 0;
    min-width: 320px;
    background: var(--cp-page);
    color: var(--cp-ink);
    font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    line-height: 1.55;
}

html.almumtaz-customer-portal[lang="ar"] body.customer-portal,
html.almumtaz-customer-portal[lang="ar"] body.customer-portal :not(i):not([class*="fa-"]) {
    font-family: "Cairo_Regular", Tahoma, sans-serif;
}

html.almumtaz-customer-portal[lang="en"] body.customer-portal,
html.almumtaz-customer-portal[lang="en"] body.customer-portal :not(i):not([class*="fa-"]) {
    font-family: "Segoe UI", Arial, sans-serif;
}

.customer-portal *,
.customer-portal *::before,
.customer-portal *::after {
    box-sizing: border-box;
}

.customer-portal a {
    color: var(--cp-primary);
    text-underline-offset: .18em;
}

.customer-portal a:hover {
    color: var(--cp-primary-hover);
}

.customer-portal [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.customer-portal :focus-visible {
    outline: 3px solid var(--cp-focus) !important;
    outline-offset: 3px;
}

.customer-portal .cp-skip-link {
    position: fixed;
    z-index: 2000;
    inset-block-start: .5rem;
    inset-inline-start: .5rem;
    transform: translateY(-160%);
    padding: .7rem 1rem;
    border-radius: .5rem;
    background: #fff;
    color: var(--cp-ink);
    box-shadow: 0 3px 14px #14243a33;
}

.customer-portal .cp-skip-link:focus {
    transform: translateY(0);
}

.customer-portal .cp-header {
    position: sticky;
    inset-block-start: 0;
    z-index: 1030;
    width: 100%;
    background: #fff;
    border-block-end: 1px solid var(--cp-border);
    box-shadow: 0 4px 18px #14243a0d;
}

.customer-portal .cp-header-inner {
    display: flex;
    align-items: center;
    gap: clamp(.65rem, 2vw, 1.5rem);
    width: min(100% - 2rem, 1440px);
    min-height: 76px;
    margin-inline: auto;
}

.customer-portal .cp-brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: .7rem;
    min-width: 0;
    color: var(--cp-ink);
    font-size: clamp(.9rem, 1.2vw, 1.1rem);
    font-weight: 800;
    line-height: 1.25;
    text-decoration: none;
}

.customer-portal .cp-brand img {
    display: block;
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    object-fit: contain;
}

.customer-portal .cp-brand span {
    max-width: 15rem;
}

.customer-portal .cp-nav {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: clamp(.3rem, .85vw, .85rem);
    min-width: 0;
}

.customer-portal .cp-nav > a,
.customer-portal .cp-more-nav > summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: .55rem .7rem;
    border-radius: .55rem;
    color: var(--cp-ink);
    font-size: .91rem;
    font-weight: 650;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.customer-portal .cp-nav > a:hover,
.customer-portal .cp-nav > a.is-active,
.customer-portal .cp-more-nav[open] > summary {
    background: #eaf1f8;
    color: var(--cp-primary-hover);
}

.customer-portal .cp-nav > a.cp-header-action {
    padding-inline: 1rem;
    background: var(--cp-primary);
    color: #fff;
}

.customer-portal .cp-nav > a.cp-header-action:hover {
    background: var(--cp-primary-hover);
    color: #fff;
}

.customer-portal .cp-more-nav {
    position: relative;
}

.customer-portal .cp-more-nav > summary {
    list-style: none;
}

.customer-portal .cp-more-nav > summary::-webkit-details-marker {
    display: none;
}

.customer-portal .cp-more-nav > summary::after {
    content: "⌄";
    margin-inline-start: .35rem;
}

.customer-portal .cp-more-menu {
    position: absolute;
    inset-block-start: calc(100% + .35rem);
    inset-inline-end: 0;
    z-index: 20;
    display: grid;
    min-width: 220px;
    padding: .45rem;
    border: 1px solid var(--cp-border);
    border-radius: .75rem;
    background: #fff;
    box-shadow: 0 12px 30px #14243a1f;
}

.customer-portal .cp-more-menu a {
    padding: .65rem .75rem;
    border-radius: .45rem;
    color: var(--cp-ink);
    text-decoration: none;
}

.customer-portal .cp-more-menu a:hover {
    background: #eaf1f8;
}

.customer-portal .cp-header-phone {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 40px;
    padding: .4rem .7rem;
    border: 1px solid var(--cp-border);
    border-radius: .55rem;
    color: var(--cp-ink);
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.customer-portal .cp-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: .5rem;
    border: 1px solid var(--cp-border);
    border-radius: .55rem;
    background: #fff;
    cursor: pointer;
}

.customer-portal .cp-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--cp-ink);
}

.customer-portal .cp-footer {
    margin-block-start: 3rem;
    border-block-start: 1px solid var(--cp-border);
    background: #fff;
}

.customer-portal .cp-footer-inner {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto minmax(220px, auto);
    align-items: center;
    gap: 1rem 2rem;
    width: min(100% - 2rem, 1440px);
    margin-inline: auto;
    padding-block: 1.25rem;
}

.customer-portal .cp-footer-brand img {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
}

.customer-portal .cp-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem 1rem;
}

.customer-portal .cp-footer-links a,
.customer-portal .cp-footer-phone {
    font-size: .9rem;
    text-decoration: none;
}

.customer-portal .cp-footer-contacts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .8rem;
}

.customer-portal .cp-footer-contacts strong {
    flex-basis: 100%;
}

.customer-portal .cp-footer-phone {
    color: var(--cp-ink);
    font-weight: 700;
}

.customer-portal .cp-footer-copy {
    grid-column: 1 / -1;
    margin: 0;
    padding-block-start: .8rem;
    border-block-start: 1px solid var(--cp-border);
    color: var(--cp-muted);
    font-size: .84rem;
    text-align: center;
}

.customer-portal #customer-portal-content,
.customer-portal #customer-portal-content main {
    min-width: 0;
}

.customer-portal .page_header {
    min-height: auto;
    margin: 0;
    padding: clamp(1.5rem, 4vw, 2.8rem) max(1rem, calc((100% - 1320px) / 2));
    background: linear-gradient(110deg, var(--cp-primary), #20204a) !important;
    color: #fff;
}

.customer-portal .page_header h1,
.customer-portal .page_header h2,
.customer-portal .page_header h3,
.customer-portal .page_header h4,
.customer-portal .page_header h5,
.customer-portal .page_header h6,
.customer-portal .page_header p,
.customer-portal .page_header a {
    color: #fff;
}

.customer-portal .page_header h1 {
    margin: 0 0 .35rem;
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    font-weight: 800;
}

.customer-portal .setting_setion,
.customer-portal .profile_section,
.customer-portal .auth_section {
    min-height: 45vh;
    padding-block: clamp(1.25rem, 3vw, 2.25rem);
    background: var(--cp-page);
}

.customer-portal .accountForm {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 55vh;
    padding: clamp(1.25rem, 4vw, 3rem) 1rem;
}

.customer-portal .accountForm .cardForm {
    position: relative;
    z-index: 1;
    width: min(100%, 560px);
    margin-inline: auto;
    padding: clamp(1.25rem, 4vw, 2.25rem);
    border: 1px solid var(--cp-border);
    border-radius: 1rem;
    background: var(--cp-surface);
    box-shadow: 0 12px 36px #14243a14;
}

.customer-portal .container,
.customer-portal .container-fluid,
.customer-portal .row,
.customer-portal [class*="col-"] {
    min-width: 0;
}

.customer-portal .profile_side_bar,
.customer-portal .profileNavCol,
.customer-portal .edit_profile_card,
.customer-portal .dashboard_welcome,
.customer-portal .dashboard_stat_card,
.customer-portal .order_card,
.customer-portal .card,
.customer-portal .auth_form,
.customer-portal .profile_form,
.customer-portal .settings_card,
.customer-portal .notification_card,
.customer-portal .table-card {
    border: 1px solid var(--cp-border);
    border-radius: .9rem;
    background: var(--cp-surface);
    box-shadow: 0 8px 24px #14243a0a;
}

.customer-portal .profile_side_bar {
    position: static;
    overflow: visible;
    padding: 1rem;
}

.customer-portal .profile_header {
    gap: .8rem;
    padding: .35rem .35rem 1rem;
    border-block-end: 1px solid var(--cp-border);
}

.customer-portal .profile_info h4,
.customer-portal .card_header h3,
.customer-portal .section_title h5 {
    color: var(--cp-ink);
    font-weight: 800;
}

.customer-portal .profile_nav {
    padding-block: .5rem;
}

.customer-portal .profile_nav .nav_links,
.customer-portal .profileNavCol {
    display: grid;
    gap: .35rem;
}

.customer-portal .profile_nav .nav_item,
.customer-portal .profileNavCol > a {
    min-width: 0;
    border: 0;
    border-radius: .6rem;
    background: transparent;
}

.customer-portal .profile_nav .nav_link,
.customer-portal .profileNavCol > a {
    display: flex;
    align-items: center;
    gap: .7rem;
    min-height: 44px;
    padding: .65rem .75rem;
    color: var(--cp-ink);
    text-decoration: none;
}

.customer-portal .profile_nav .nav_item:hover,
.customer-portal .profile_nav .nav_item.active,
.customer-portal .profileNavCol > a:hover,
.customer-portal .profileNavCol > a.active {
    background: #f3f1f7;
}

.customer-portal .profile_nav .nav_icon,
.customer-portal .profileNavCol i {
    flex: 0 0 auto;
    color: var(--cp-primary);
}

.customer-portal .nav_desc {
    color: var(--cp-muted);
    font-size: .8rem;
}

.customer-portal .profile_actions {
    margin-block-start: .75rem;
    padding-block-start: .7rem;
    border-block-start: 1px solid var(--cp-border);
}

.customer-portal .welcome_card {
    border: 0;
    background: linear-gradient(115deg, var(--cp-primary), #20204a);
    color: #fff;
}

.customer-portal .welcome_card h3,
.customer-portal .welcome_card p,
.customer-portal .welcome_card .stat_item {
    color: #fff;
}

.customer-portal .dashboard_stat_card,
.customer-portal .edit_profile_card,
.customer-portal .auth_form {
    height: auto;
    padding: clamp(1rem, 2vw, 1.5rem);
}

.customer-portal .auth_form {
    width: min(100%, 680px);
    margin-inline: auto;
}

.customer-portal .stat_title p,
.customer-portal .stat_label,
.customer-portal .form_text,
.customer-portal .text-muted {
    color: var(--cp-muted) !important;
}

.customer-portal .stat_link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f3f1f7;
}

.customer-portal .form_group,
.customer-portal .input_filed,
.customer-portal .form-field,
.customer-portal .form-group {
    min-width: 0;
    margin-block-end: 1rem;
}

.customer-portal label,
.customer-portal .form-label {
    display: inline-block;
    margin-block-end: .4rem;
    color: var(--cp-ink);
    font-weight: 700;
}

.customer-portal input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.customer-portal select,
.customer-portal textarea,
.customer-portal .form-control {
    width: 100%;
    min-height: 44px;
    max-width: 100%;
    border: 1px solid #c9c6d0;
    border-radius: .55rem;
    background: #fff;
    color: var(--cp-ink);
    padding: .65rem .8rem;
}

.customer-portal textarea {
    min-height: 120px;
    resize: vertical;
}

.customer-portal input[readonly],
.customer-portal input:disabled,
.customer-portal select:disabled,
.customer-portal textarea:disabled {
    background: #edf1f5;
    color: #435164;
    opacity: 1;
}

.customer-portal .form_actions,
.customer-portal .form_actions > *,
.customer-portal .form-buttons,
.customer-portal .action-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem;
}

.customer-portal button,
.customer-portal .btn,
.customer-portal .log,
.customer-portal .btn_primary,
.customer-portal .btn_secondary {
    min-height: 42px;
    border-radius: .55rem;
    font-weight: 700;
}

.customer-portal .btn-primary,
.customer-portal .btn_primary,
.customer-portal .log {
    border-color: var(--cp-primary);
    background: var(--cp-primary);
    color: #fff;
}

.customer-portal .btn-primary:hover,
.customer-portal .btn_primary:hover,
.customer-portal .log:hover {
    border-color: var(--cp-primary-hover);
    background: var(--cp-primary-hover);
    color: #fff;
}

.customer-portal .btn-secondary,
.customer-portal .btn_secondary {
    border-color: #aebbc9;
    background: #fff;
    color: var(--cp-ink);
}

.customer-portal .alert,
.customer-portal .invalid-feedback,
.customer-portal .form-error,
.customer-portal .help-block {
    overflow-wrap: anywhere;
}

.customer-portal .table-responsive {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}

.customer-portal table {
    max-width: 100%;
    border-color: var(--cp-border);
}

.customer-portal .table {
    margin-block-end: 0;
    background: #fff;
}

.customer-portal .table thead th {
    background: #f3f1f7;
    color: var(--cp-ink);
    font-weight: 750;
    white-space: nowrap;
}

.customer-portal .table td,
.customer-portal .table th {
    vertical-align: middle;
}

.customer-portal .badge,
.customer-portal .status-badge,
.customer-portal .status {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    border-radius: 999px;
    padding: .3rem .65rem;
    font-size: .82rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.customer-portal .modal-content {
    border: 1px solid var(--cp-border);
    border-radius: .9rem;
}

.customer-portal .modal-header,
.customer-portal .modal-footer {
    border-color: var(--cp-border);
}

.customer-portal img,
.customer-portal video,
.customer-portal iframe {
    max-width: 100%;
}

.customer-portal .pagination {
    flex-wrap: wrap;
    gap: .2rem;
}

.customer-portal .table-responsive {
    border: 1px solid var(--cp-border);
    border-radius: .75rem;
    background: var(--cp-surface);
}

.customer-portal .table thead th:first-child {
    border-start-start-radius: .5rem;
}

.customer-portal .table thead th:last-child {
    border-start-end-radius: .5rem;
}

.customer-portal .badge,
.customer-portal .status-badge,
.customer-portal .status {
    line-height: 1.4;
}

.customer-portal .card-header,
.customer-portal .card-footer {
    border-color: var(--cp-border);
    background: #faf9fc;
}

.customer-portal .alert {
    border-radius: .65rem;
}

@media (max-width: 1199.98px) {
    .customer-portal .cp-header-inner {
        min-height: 68px;
    }

    .customer-portal .cp-menu-toggle {
        display: flex;
        margin-inline-start: auto;
    }

    .customer-portal .cp-nav {
        position: absolute;
        inset-block-start: 100%;
        inset-inline: 0;
        display: none;
        align-items: stretch;
        justify-content: flex-start;
        flex-direction: column;
        gap: .2rem;
        max-height: calc(100svh - 70px);
        overflow-y: auto;
        padding: .75rem 1rem 1rem;
        border-block-end: 1px solid var(--cp-border);
        background: #fff;
        box-shadow: 0 12px 24px #14243a1a;
    }

    .customer-portal .cp-nav.is-open {
        display: flex;
    }

    .customer-portal .cp-nav > a,
    .customer-portal .cp-more-nav > summary {
        justify-content: flex-start;
        width: 100%;
        text-align: start;
    }

    .customer-portal .cp-more-menu {
        position: static;
        min-width: 0;
        margin-block-start: .25rem;
        box-shadow: none;
    }
}

@media (max-width: 767.98px) {
    .customer-portal .cp-header-inner,
    .customer-portal .cp-footer-inner {
        width: min(100% - 1rem, 1440px);
    }

    .customer-portal .cp-header-inner {
        min-height: 62px;
        gap: .5rem;
    }

    .customer-portal .cp-brand {
        gap: .45rem;
        font-size: .83rem;
    }

    .customer-portal .cp-brand img {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .customer-portal .cp-brand span {
        max-width: min(48vw, 14rem);
    }

    .customer-portal .cp-header-phone {
        min-height: 38px;
        padding: .35rem .45rem;
        font-size: .75rem;
    }

    .customer-portal .page_header {
        padding: 1.25rem 1rem;
    }

    .customer-portal .cp-footer-inner {
        grid-template-columns: 1fr;
        gap: .8rem;
    }

    .customer-portal .cp-footer-brand {
        grid-column: 1 / -1;
    }

    .customer-portal .cp-footer-links {
        justify-content: flex-start;
        gap: .45rem .8rem;
    }

    .customer-portal .cp-footer-contacts {
        display: grid;
        grid-template-columns: 1fr;
        justify-self: stretch;
    }

    .customer-portal .cp-footer-phone {
        justify-self: end;
    }

    .customer-portal .profile_side_bar {
        margin-block-end: 1rem;
    }

    .customer-portal .table {
        font-size: .88rem;
    }
}

@media (max-width: 400px) {
    .customer-portal .cp-header-phone {
        min-height: 34px;
        padding: .25rem .35rem;
        font-size: .66rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .customer-portal *,
    .customer-portal *::before,
    .customer-portal *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* ───────────────────────────────────────────────────────────────────────
   Auth-page primary action buttons (login / register / forget-password)
   -----------------------------------------------------------------------
   Root cause: style.css:4215 defines `main .accountForm .defaultBtn` with
   !important rules intended to brand these buttons (full-width, 12px
   radius, dark gold background). The auth layout (site/layouts/index.blade.php)
   has no <main> element wrapping @yield('content'), so that selector never
   matches. The buttons silently fall back to the generic .defaultBtn base
   rule (style.css:706), which paints them with the legacy pre-rebrand
   theme color (--mainColor: #282860) and a small pill shape — on all three
   auth pages, in both languages.
   Fix: re-apply the same intended layout using a selector that matches
   the real DOM (`.customer-portal .accountForm`, consistent with the
   scoping already used elsewhere in this file), with the approved brand
   token (--cp-primary) in place of the orphaned #8b6914 value.
   ─────────────────────────────────────────────────────────────────────── */
.customer-portal .accountForm .defaultBtn {
    width: 100%;
    padding: 13px !important;
    border-radius: 12px !important;
    border: none !important;
    background: var(--cp-primary) !important;
    color: #fff !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, transform 0.2s !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.customer-portal .accountForm .defaultBtn:hover {
    background: var(--cp-primary-hover) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(40,40,96,0.28) !important;
}

.customer-portal .accountForm .defaultBtn.outline-btn {
    background: transparent !important;
    border: 1.5px solid var(--cp-primary) !important;
    color: var(--cp-primary) !important;
}

.customer-portal .accountForm .defaultBtn.outline-btn:hover {
    background: var(--cp-primary) !important;
    color: #fff !important;
}

.customer-portal .accountForm a:not(.defaultBtn) {
    color: var(--cp-primary);
    font-weight: 600;
    text-decoration: none;
}

.customer-portal .accountForm a:not(.defaultBtn):hover {
    text-decoration: underline;
}

/* Account surfaces render usable content immediately; branding loaders are public-site only. */
html.almumtaz-customer-portal .preloader,
html.almumtaz-customer-portal .page-loader {
    display: none !important;
    animation: none !important;
    transition: none !important;
}

html.almumtaz-customer-portal body.customer-portal .accountForm .otp {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    direction: ltr;
}

html.almumtaz-customer-portal body.customer-portal .accountForm .otp-input {
    flex: 0 1 3rem;
    width: 3rem;
    min-width: 2rem;
    max-width: 3.25rem;
    text-align: center;
    direction: ltr;
}

/* Keep the existing account illustration while giving auth forms usable mobile width. */
@media (max-width: 767.98px) {
    html.almumtaz-customer-portal body.customer-portal .accountForm {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    html.almumtaz-customer-portal body.customer-portal .accountForm .cardForm {
        order: 1;
        flex: 0 0 auto;
        width: min(100%, 560px);
        max-width: 560px;
    }

    html.almumtaz-customer-portal body.customer-portal .accountForm .imageBG {
        order: 2;
        flex: 0 0 auto;
        width: min(100%, 560px);
        max-width: 560px;
        height: auto;
        aspect-ratio: 16 / 9;
        overflow: hidden;
        border-radius: 0.875rem;
    }

    html.almumtaz-customer-portal body.customer-portal .accountForm .imageBG img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

}
