:root {
    --customer-navigation-duration: 180ms;
}

#customer-app-shell {
    transition: opacity var(--customer-navigation-duration) ease,
                transform var(--customer-navigation-duration) ease;
}

html.customer-navigation-loading #customer-app-shell {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: none;
}

.customer-navigation-status {
    position: fixed;
    z-index: 90;
    top: var(--customer-navigation-top, 0px);
    right: 0;
    bottom: var(--customer-navigation-bottom, 82px);
    left: 0;
    display: none;
    min-height: min(62vh, 520px);
    align-items: flex-start;
    justify-content: center;
    padding: clamp(90px, 20vh, 170px) 20px 40px;
    background: #f8f9fa;
    pointer-events: none;
}

.customer-navigation-status.is-visible {
    display: flex;
    pointer-events: auto;
}

.customer-navigation-status__card {
    width: min(100%, 310px);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #344054;
    text-align: center;
    transform: none;
}

.customer-navigation-status__visual {
    display: inline-grid;
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    place-items: center;
    border-radius: 0;
    background: transparent;
    color: var(--primary-color, #0d6efd);
}

.customer-navigation-status__spinner {
    width: 25px;
    height: 25px;
    border: 3px solid color-mix(in srgb, var(--primary-color, #0d6efd) 18%, white);
    border-top-color: var(--primary-color, #0d6efd);
    border-radius: 50%;
    animation: customer-navigation-spin .75s linear infinite;
}

.customer-navigation-status__icon {
    display: none;
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.customer-navigation-status__title {
    margin: 0;
    color: #101828;
    font-size: .92rem;
    font-weight: 600;
}

.customer-navigation-status__message {
    display: none;
    margin: 7px 0 0;
    color: #667085;
    font-size: .72rem;
    line-height: 1.8;
}

.customer-navigation-status__retry {
    display: none;
    width: 100%;
    min-height: 42px;
    margin-top: 15px;
    border: 0;
    border-radius: 12px;
    background: var(--primary-color, #0d6efd);
    color: #fff;
    font-family: inherit;
    font-size: .78rem;
    font-weight: 900;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--primary-color, #0d6efd) 24%, transparent);
}

.customer-navigation-status.is-error .customer-navigation-status__spinner { display: none; }
.customer-navigation-status.is-error .customer-navigation-status__icon,
.customer-navigation-status.is-error .customer-navigation-status__retry { display: block; }
.customer-navigation-status.is-error .customer-navigation-status__message { display: block; }

@keyframes customer-navigation-spin { to { transform: rotate(360deg); } }

.customer-navigation-progress {
    position: fixed;
    z-index: 10050;
    top: 0;
    right: 0;
    width: 0;
    height: 3px;
    border-radius: 0 0 0 3px;
    background: var(--primary-color, #0d6efd);
    box-shadow: 0 1px 8px color-mix(in srgb, var(--primary-color, #0d6efd) 45%, transparent);
    opacity: 0;
    pointer-events: none;
    transition: width .2s ease, opacity .18s ease;
}

html.customer-navigation-loading .customer-navigation-progress {
    width: 72%;
    opacity: 1;
}

html.customer-navigation-complete .customer-navigation-progress {
    width: 100%;
    opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
    #customer-app-shell,
    .customer-navigation-progress,
    .customer-navigation-status,
    .customer-navigation-status__card {
        transition: none;
    }

    .customer-navigation-status__spinner { animation-duration: 1.4s; }
}
.product-card-navigable {
    cursor: pointer;
}

body.customer-logout-modal-open { overflow: hidden; }

.customer-logout-confirm {
    position: fixed;
    z-index: 12000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    visibility: hidden;
    opacity: 0;
    transition: opacity .18s ease, visibility .18s ease;
}

.customer-logout-confirm.is-visible { visibility: visible; opacity: 1; }

.customer-logout-confirm__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .46);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.customer-logout-confirm__dialog {
    position: relative;
    width: min(100%, 390px);
    padding: 24px 22px 20px;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
    direction: rtl;
    text-align: center;
    transform: translateY(12px) scale(.97);
    transition: transform .2s ease;
}

.customer-logout-confirm.is-visible .customer-logout-confirm__dialog { transform: none; }

.customer-logout-confirm__icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 13px;
    border-radius: 17px;
    background: #fff1f2;
    color: #e11d48;
}

.customer-logout-confirm__icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.customer-logout-confirm__dialog h2 {
    margin: 0 0 7px;
    color: #101828;
    font-size: 1.05rem;
    font-weight: 900;
}

.customer-logout-confirm__dialog p {
    margin: 0;
    color: #667085;
    font-size: .82rem;
    line-height: 1.8;
}

.customer-logout-confirm__actions {
    display: flex;
    gap: 9px;
    margin-top: 20px;
}

.customer-logout-confirm__actions button {
    flex: 1;
    min-height: 43px;
    padding: 8px 12px;
    border-radius: 12px;
    font-family: inherit;
    font-size: .78rem;
    font-weight: 850;
    cursor: pointer;
}

.customer-logout-confirm__cancel {
    border: 1px solid #e4e7ec;
    background: #f8f9fa;
    color: #344054;
}

.customer-logout-confirm__accept {
    border: 1px solid #e11d48;
    background: #e11d48;
    color: #fff;
    box-shadow: 0 8px 18px rgba(225, 29, 72, .2);
}

@media (max-width: 575.98px) {
    .customer-logout-confirm { align-items: end; padding: 10px; }
    .customer-logout-confirm__dialog {
        width: 100%;
        padding: 21px 17px calc(17px + env(safe-area-inset-bottom));
        border-radius: 22px;
    }
}
