/* ═══════════════════════════════════════════════════════════════
   Auth Popup — Redesigned Frontend Styles
   Design: Clean mobile-first, green primary, pill inputs & buttons
═══════════════════════════════════════════════════════════════ */

:root {
    --ap-primary:       #3BBF72;
    --ap-primary-dark:  #2DA560;
    --ap-primary-light: #edfaf3;
    --ap-text:          #1a1a2e;
    --ap-text-muted:    #9a9aaa;
    --ap-border:        #e8eaed;
    --ap-bg:            #ffffff;
    --ap-input-bg:      #f3f5f7;
    --ap-radius-pill:   10px;
    --ap-radius-dialog: 24px;
    --ap-shadow:        0 24px 64px rgba(0,0,0,.17);
    --ap-transition:    .22s cubic-bezier(.4,0,.2,1);
    --ap-font:          -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ── Overlay ──────────────────────────────────────────────── */
.ap-overlay {
    position: fixed;
    inset: 0;
    z-index: 999990;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ap-font);
}

.ap-mask {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.52);
    animation: ap-fade-in var(--ap-transition) forwards;
}

@keyframes ap-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Dialog ───────────────────────────────────────────────── */
.ap-dialog {
    position: relative;
    z-index: 1;
    background: var(--ap-bg);
    border-radius: var(--ap-radius-dialog);
    box-shadow: var(--ap-shadow);
    width: 420px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 28px 32px 32px;
    animation: ap-slide-up var(--ap-transition) forwards;
    scroll-behavior: smooth;
}

@keyframes ap-slide-up {
    from { opacity: 0; transform: translateY(24px) scale(.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1);   }
}

/* ── Header Back Button ───────────────────────────────────── */
.ap-header-back {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--ap-border);
    background: var(--ap-bg);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: background var(--ap-transition), border-color var(--ap-transition), color var(--ap-transition), box-shadow var(--ap-transition);
    padding: 0;
    z-index: 2;
}
.ap-header-back:hover {
    background: #f6f6f8;
    border-color: #c8cad0;
    color: #1a1a2e;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.ap-header-back:active {
    transform: scale(.95);
}

/* ── Hidden tabs (JS panel switcher) ─────────────────────── */
.ap-tabs-hidden,
.ap-tabs-hidden * {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    position: absolute !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
}

/* ── Close button (top right) ────────────────────────────── */
.ap-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--ap-border);
    background: var(--ap-bg);
    /*border-radius: 10px;*/
    border-radius: var(--ap-border-pill);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: background var(--ap-transition), border-color var(--ap-transition), color var(--ap-transition), box-shadow var(--ap-transition);
    padding: 0;
    z-index: 2;
}
.ap-close:hover {
    background: #f6f6f8;
    border-color: #c8cad0;
    color: #1a1a2e;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.ap-close:active { transform: scale(.95); }

/* ── Alert box ────────────────────────────────────────────── */
.ap-alert {
    padding: 12px 16px;
    border-radius: 14px;
    font-size: .875rem;
    margin-top: 40px;
    /*margin-bottom: 16px;*/
    line-height: 1.5;
}
.ap-alert.ap-alert-error {
    background: #fff0ef;
    border: 1px solid #f5c6c2;
    color: #c0392b;
}
.ap-alert.ap-alert-success {
    background: var(--ap-primary-light);
    border: 1px solid #b2dfcc;
    color: #1a7a45;
}

/* ── Panels ───────────────────────────────────────────────── */
.ap-panel {
    display: none;
}
.ap-panel.active {
    display: block;
    animation: ap-panel-in .2s ease forwards;
}
@keyframes ap-panel-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Panel Header ─────────────────────────────────────────── */
.ap-panel-header {
    padding-top: 32px;  /* clearance for the back button */
    margin-bottom: 26px;
    text-align: left;
}
.ap-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--ap-text);
    margin: 0 0 8px;
    letter-spacing: -.6px;
    line-height: 1.15;
}
.ap-subtitle {
    font-size: .875rem;
    color: var(--ap-text-muted);
    margin: 0;
    line-height: 1.55;
}

/* ── Mode tabs (Password / OTP) ───────────────────────────── */
.ap-mode-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}
.ap-mode-tab {
    padding: 6px 20px;
    border: 1.5px solid var(--ap-border);
    background: transparent;
    border-radius: 20px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--ap-text-muted);
    cursor: pointer;
    transition: all var(--ap-transition);
    font-family: var(--ap-font);
}
.ap-mode-tab.active {
    background: var(--ap-primary-light);
    border-color: var(--ap-primary);
    color: var(--ap-primary);
}
.ap-mode-tab:hover:not(.active) {
    border-color: #c8cad0;
    color: var(--ap-text);
}

/* ── Forms ────────────────────────────────────────────────── */
.ap-form { display: none; }
.ap-form.active { display: block; }

/* ── Fields ───────────────────────────────────────────────── */
.ap-field {
    margin-bottom: 14px;
}
.ap-field label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: var(--ap-text);
    margin-bottom: 8px;
    letter-spacing: .01em;
}
.ap-field label small {
    font-weight: 400;
    color: var(--ap-text-muted);
}

/* ── Input wrap — pill style ──────────────────────────────── */
.ap-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    border: 1.5px solid transparent;
    border-radius: var(--ap-radius-pill);
    background: var(--ap-input-bg);
    transition: border-color var(--ap-transition), background var(--ap-transition), box-shadow var(--ap-transition);
    overflow: hidden;
    height: 54px;
}
.ap-input-wrap:focus-within {
    border-color: var(--ap-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(59,191,114,.1);
}
.ap-input-wrap .ap-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-left: 18px;
    margin-right: 10px;
    color: var(--ap-text-muted);
}
.ap-input-wrap input,
.ap-input-wrap .ap-select,
.ap-input-wrap .ap-date-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0 16px 0 0;
    font-size: .95rem;
    color: var(--ap-text);
    outline: none;
    font-family: var(--ap-font);
    min-width: 0;
    height: 100%;
}
.ap-input-wrap input::placeholder { color: #bbbbc8; }

/* Phone with prefix */
.ap-phone-wrap .ap-phone-prefix {
    padding: 0 12px 0 18px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--ap-text-muted);
    border-right: 1.5px solid var(--ap-border);
    white-space: nowrap;
    line-height: 52px;
    flex-shrink: 0;
}
.ap-phone-wrap input { padding-left: 12px; }

/* Password toggle */
.ap-toggle-pass {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0 16px 0 8px;
    color: var(--ap-text-muted);
    display: flex;
    align-items: center;
    transition: color var(--ap-transition);
    flex-shrink: 0;
}
.ap-toggle-pass:hover { color: var(--ap-text); }
.ap-eye { width: 18px; height: 18px; }

/* ── Remember me + Forgot Password row ───────────────────── */
.ap-remember-forgot-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 6px 4px 20px;
}
.ap-remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    font-size: .83rem;
    color: var(--ap-text);
}
.ap-remember-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.ap-check-box {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    border: 1.5px solid #ccc;
    border-radius: 4px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--ap-transition), border-color var(--ap-transition);
    position: relative;
}
.ap-remember-checkbox:checked ~ .ap-check-box {
    background: var(--ap-primary);
    border-color: var(--ap-primary);
}
.ap-remember-checkbox:checked ~ .ap-check-box::after {
    content: '';
    width: 4px;
    height: 7px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-1px);
    display: block;
}
.ap-forgot-trigger {
    font-size: .83rem;
    color: var(--ap-text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--ap-transition);
    cursor: pointer;
}
.ap-forgot-trigger:hover { color: var(--ap-primary); }

/* ── Buttons ──────────────────────────────────────────────── */
.ap-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 52px;
    padding: 0 24px;
    border: none;
    border-radius: var(--ap-radius-pill);
    font-size: .97rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--ap-transition), transform var(--ap-transition), opacity var(--ap-transition), box-shadow var(--ap-transition);
    font-family: var(--ap-font);
    letter-spacing: .01em;
}
.ap-btn:active { transform: scale(.98); }
.ap-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}

.ap-btn-primary {
    background: var(--ap-text, #eb161e);
    color: #fff;
    margin-top: 4px;
    box-shadow: 0 4px 18px rgba(235,22,30,.22);
}
.ap-btn-primary:hover:not(:disabled) {
    background: color-mix(in srgb, var(--ap-text, #eb161e) 82%, #000);
    box-shadow: 0 6px 22px rgba(235,22,30,.32);
}

.ap-btn-ghost {
    background: transparent;
    color: var(--ap-text-muted);
    border: 1.5px dashed #ccc;
    font-size: .88rem;
    height: 48px;
    margin-top: 4px;
    box-shadow: none;
}
.ap-btn-ghost:hover:not(:disabled) {
    background: #fafafa;
    color: var(--ap-text);
    border-color: #aaa;
}

/* ── Loading spinner on button ────────────────────────────── */
.ap-btn.ap-loading {
    pointer-events: none;
    opacity: .82;
}
.ap-btn.ap-loading::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ap-spin .7s linear infinite;
    flex-shrink: 0;
}
.ap-btn-ghost.ap-loading::before,
.ap-btn-social.ap-loading::before {
    border-color: rgba(0,0,0,.15);
    border-top-color: var(--ap-text);
}
@keyframes ap-spin { to { transform: rotate(360deg); } }

/* ── Switch text ──────────────────────────────────────────── */
.ap-switch-text {
    text-align: center;
    font-size: .855rem;
    color: var(--ap-text-muted);
    margin: 20px 0 6px;
}
.ap-switch-link {
    color: var(--ap-primary);
    font-weight: 700;
    text-decoration: none;
    transition: color var(--ap-transition);
}
.ap-switch-link:hover { color: var(--ap-primary-dark); }

/* ── Divider ──────────────────────────────────────────────── */
.ap-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 16px;
    color: var(--ap-text-muted);
    font-size: .77rem;
    letter-spacing: .03em;
    text-transform: none;
}
.ap-divider::before,
.ap-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--ap-border);
}

/* ── Social circles ───────────────────────────────────────── */
.ap-social-circles {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 4px;
}
.ap-social-circle {
    width: 50px;
    height: 50px;
    /*border-radius: 50%;*/
    border-radius: var(--ap-radius-pill);
    border: 1.5px solid var(--ap-border);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: box-shadow var(--ap-transition), transform var(--ap-transition), border-color var(--ap-transition);
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    padding: 0;
}
.ap-social-circle:hover:not(:disabled) {
    box-shadow: 0 4px 16px rgba(0,0,0,.13);
    transform: translateY(-1px);
    border-color: #d0d2d8;
}
.ap-social-circle:active:not(:disabled) {
    transform: scale(.95);
}
.ap-social-circle:disabled {
    opacity: .42;
    cursor: not-allowed;
}

/* Hide legacy full-width social buttons (replaced by circles) */
.ap-btn-social,
.ap-social-btns { display: none !important; }

/* ── OTP digits ───────────────────────────────────────────── */
.ap-otp-hint {
    font-size: .875rem;
    color: var(--ap-text-muted);
    margin: 0 0 16px;
    line-height: 1.5;
    text-align: center;
}
.ap-otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 10px;
}
.ap-otp-digit {
    width: 46px;
    height: 52px;
    border: 1.5px solid var(--ap-border);
    border-radius: 14px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ap-text);
    background: var(--ap-input-bg);
    outline: none;
    transition: border-color var(--ap-transition), box-shadow var(--ap-transition), background var(--ap-transition);
    font-family: var(--ap-font);
    -webkit-appearance: none;
    appearance: none;
}
.ap-otp-digit:focus {
    border-color: var(--ap-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59,191,114,.13);
}
.ap-otp-digit.ap-filled {
    border-color: var(--ap-primary);
    background: var(--ap-primary-light);
}

.ap-otp-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: .82rem;
    color: var(--ap-text-muted);
    margin: 10px 0 14px;
    min-height: 24px;
}
.ap-timer-text { font-weight: 600; }

/* ── OTP / Register / Forgot steps ───────────────────────── */
.ap-otp-step,
.ap-reg-step,
.ap-fp-step { display: none; }
.ap-otp-step.active,
.ap-reg-step.active,
.ap-fp-step.active { display: block; }

/* ── Link / Back btn ──────────────────────────────────────── */
.ap-link {
    display: block;
    text-align: center;
    font-size: .83rem;
    color: var(--ap-primary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 0 0;
    font-family: var(--ap-font);
    text-decoration: none;
    transition: color var(--ap-transition);
}
.ap-link:hover { color: var(--ap-primary-dark); }
.ap-back-btn { margin-top: 8px; }

/* ── Forgot link (legacy, now replaced by ap-forgot-trigger) ─ */
.ap-forgot-link {
    font-size: .82rem;
    color: var(--ap-text-muted);
    text-decoration: none;
}
.ap-forgot-link:hover { color: var(--ap-primary); }

/* ── Phone check message ──────────────────────────────────── */
.ap-phone-check-msg {
    display: block;
    font-size: .78rem;
    margin-top: 6px;
    /*min-height: 18px;*/
    padding-left: 18px;
    transition: color var(--ap-transition);
}
.ap-phone-check-msg.taken { color: #e74c3c; }
.ap-phone-check-msg.free  { color: #27ae60; }

/* ── Terms ────────────────────────────────────────────────── */
.ap-terms {
    margin: 22px 0 0;
    font-size: .74rem;
    color: #bbbbc8;
    text-align: center;
    line-height: 1.6;
}
.ap-terms a { color: var(--ap-primary); text-decoration: none; }
.ap-terms a:hover { text-decoration: underline; }

/* ── Scrollbar ────────────────────────────────────────────── */
.ap-dialog::-webkit-scrollbar { width: 4px; }
.ap-dialog::-webkit-scrollbar-track { background: transparent; }
.ap-dialog::-webkit-scrollbar-thumb { background: var(--ap-border); border-radius: 4px; }

/* ── Select & Date ────────────────────────────────────────── */
.ap-input-wrap .ap-select {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}
.ap-date-input {
    /* inherits from .ap-input-wrap input */
}

/* ── Two-column field row ─────────────────────────────────── */
.ap-field-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.ap-required { color: #e74c3c; }

/* ── Loyalty section ──────────────────────────────────────── */
.ap-loyalty-toggle { margin: 12px 0 4px; }
.ap-loyalty-check-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}
.ap-loyalty-check-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.ap-loyalty-check-box {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border: 2px solid var(--ap-border);
    border-radius: 5px;
    background: #fff;
    transition: background var(--ap-transition), border-color var(--ap-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.ap-loyalty-check-label input:checked ~ .ap-loyalty-check-box {
    background: var(--ap-primary);
    border-color: var(--ap-primary);
}
.ap-loyalty-check-label input:checked ~ .ap-loyalty-check-box::after {
    content: '';
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-1px);
    display: block;
}
.ap-loyalty-check-text {
    font-size: .88rem;
    font-weight: 600;
    color: var(--ap-text);
    line-height: 1.4;
}
.ap-loyalty-fields { margin-top: 4px; overflow: hidden; }
.ap-loyalty-fields-inner {
    background: linear-gradient(135deg, #f4fdf8 0%, #edf9f3 100%);
    border: 1.5px solid rgba(59,191,114,.2);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 4px;
}
.ap-loyalty-desc {
    font-size: .8rem;
    color: var(--ap-primary);
    font-weight: 500;
    margin: 0 0 12px;
}
.ap-loyalty-fields .ap-field { margin-bottom: 12px; }
.ap-loyalty-fields .ap-field:last-child { margin-bottom: 0; }

/* ── Guest button area ────────────────────────────────────── */
.ap-guest-wrap { margin: 8px 0 4px; }

/* ── Mobile: Bottom Sheet ─────────────────────────────────── */
@media (max-width: 480px) {
    .ap-dialog {
        padding: 22px 22px 36px;
        /*border-radius: 28px 28px 0 0;*/
        border-radius: 15px 15px 0 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        max-height: 95vh;
        animation: ap-slide-up-mobile .32s cubic-bezier(.25,.46,.45,.94) forwards;
    }
    @keyframes ap-slide-up-mobile {
        from { transform: translateY(100%); }
        to   { transform: translateY(0); }
    }

    .ap-panel-header { padding-top: 26px; margin-bottom: 20px; }
    .ap-title { font-size: 1.6rem; }
    .ap-subtitle { font-size: .84rem; }

    .ap-input-wrap { height: 52px; }
    .ap-btn { height: 50px; font-size: .95rem; }

    .ap-otp-digit { width: 40px; height: 48px; font-size: 1.1rem; }
    .ap-otp-inputs { gap: 7px; }

    .ap-social-circle { width: 48px; height: 48px; }

    .ap-header-back {
        top: 18px;
        left: 18px;
        width: 34px;
        height: 34px;
    }
}


/* ═══════════════════════════════════════════════════════════════
   Checkout — two-column desktop layout
═══════════════════════════════════════════════════════════════ */
@media (min-width: 993px) {
    #payment {
        float: right;
        width: 41.1764705882%;
        clear: right;
        margin-right: 0;
    }
}

/* ═══════════════════════════════════════════════════════════════
   Checkout — mobile flex order
═══════════════════════════════════════════════════════════════ */
@media (max-width: 992px) {
    form.woocommerce-checkout {
        display: flex;
        flex-direction: column;
    }
    form.woocommerce-checkout > h3#order_review_heading          { order: 1; }
    form.woocommerce-checkout > .woocommerce-checkout-review-order { order: 2; }
    form.woocommerce-checkout > #customer_details                { order: 3; }
    form.woocommerce-checkout > #payment                         { order: 4; }
}

/* ── jQuery UI Datepicker ─────────────────────────────────── */
.ui-datepicker {
    background: #fff;
    border: 1.5px solid var(--ap-border);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,.14);
    padding: 12px;
    font-family: var(--ap-font);
    font-size: .82rem;
    z-index: 9999999 !important;
    width: 256px;
}
.ui-datepicker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 2px 0 6px;
    border-bottom: 1px solid var(--ap-border);
    position: relative;
}
.ui-datepicker-title {
    font-weight: 700;
    font-size: .85rem;
    color: var(--ap-text);
    display: flex;
    gap: 4px;
    align-items: center;
    margin: 0 auto;
}
.ui-datepicker-prev,
.ui-datepicker-next {
    cursor: pointer;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ap-border);
    background: transparent;
    position: static;
    top: auto;
    transition: background .15s;
    flex-shrink: 0;
}
.ui-datepicker-prev:hover,
.ui-datepicker-next:hover { background: var(--ap-input-bg); }
.ui-datepicker-prev span,
.ui-datepicker-next span  { display: none; }
.ui-datepicker-prev::before { content: '‹'; font-size: 1rem; color: var(--ap-text); line-height: 1; }
.ui-datepicker-next::before { content: '›'; font-size: 1rem; color: var(--ap-text); line-height: 1; }
.ui-datepicker-calendar {
    width: 100%;
    border-collapse: collapse;
}
.ui-datepicker-calendar th {
    font-size: .7rem;
    font-weight: 600;
    color: var(--ap-text-muted);
    text-align: center;
    padding: 4px 2px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.ui-datepicker-calendar td { padding: 2px; text-align: center; }
.ui-datepicker-calendar td a,
.ui-datepicker-calendar td span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    margin: 0 auto;
    font-size: .8rem;
    color: var(--ap-text);
    text-decoration: none;
    transition: background .15s;
    cursor: pointer;
    border: none;
    background: transparent;
}
.ui-datepicker-calendar td a:hover { background: var(--ap-input-bg); }
.ui-datepicker-calendar .ui-state-active,
.ui-datepicker-calendar .ui-state-active:hover {
    background: var(--ap-text, #eb161e) !important;
    color: #fff !important;
}
.ui-datepicker-calendar .ui-datepicker-today a {
    background: var(--ap-primary-light);
    color: var(--ap-primary);
    font-weight: 700;
}
.ui-datepicker-calendar .ui-datepicker-unselectable span {
    color: var(--ap-text-muted);
    opacity: .38;
    cursor: default;
}
.ui-datepicker select.ui-datepicker-month,
.ui-datepicker select.ui-datepicker-year {
    border: 1px solid var(--ap-border);
    border-radius: 6px;
    padding: 2px 4px;
    font-size: .78rem;
    color: var(--ap-text);
    background: var(--ap-input-bg);
    outline: none;
    font-family: var(--ap-font);
}

/* ── My Account Page Title ───────────────────────────────── */
/*body.woocommerce-account .entry-title {*/
/*    text-align: center;*/
/*}*/

/* ── Mobile Account Content Modal ────────────────────────── */
#ap-acct-modal { display: none; }

@media (min-width: 769px) {
    .ap-mobile-account-head {
        display: none !important;
    }

    .woocommerce-MyAccount-navigation.ap-mobile-account-nav .ap-mobile-account-icon,
    .woocommerce-MyAccount-navigation.ap-mobile-account-nav .ap-mobile-account-badge,
    .woocommerce-MyAccount-navigation.ap-mobile-account-nav .ap-mobile-account-arrow {
        display: none !important;
    }
}

@media (max-width: 768px) {

    /* Hide page content on account pages — nav stays visible  */
    body.woocommerce-account .woocommerce-MyAccount-content {
        display: none !important;
    }

    /* Prevent FOUC — keep my-account invisible until JS finishes mobile enhancement */
    body.woocommerce-account:not(.ap-mobile-account-ready) .woocommerce-MyAccount {
        opacity: 0;
    }
    body.woocommerce-account.ap-mobile-account-ready .woocommerce-MyAccount {
        opacity: 1;
        transition: opacity .12s ease-out;
    }

    .woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--wishlist a {
        margin-top: 15px;
    }

    /* Full-screen content modal slides in from the right */
    #ap-acct-modal {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 0;
        z-index: 999985;
        background: #f5f6f8;
        transform: translateX(100%);
        transition: transform .32s cubic-bezier(.4,0,.2,1);
    }
    #ap-acct-modal.open { transform: translateX(0); }

    .ap-acct-modal-header {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 14px 16px;
        background: #fff;
        border-bottom: 1px solid var(--ap-border);
        flex-shrink: 0;
    }
    .ap-acct-modal-back {
        width: 32px; height: 32px;
        border: 1.5px solid var(--ap-border);
        background: #fff;
        border-radius: 9px;
        cursor: pointer;
        display: flex; align-items: center; justify-content: center;
        color: var(--ap-text);
        padding: 0; flex-shrink: 0;
        transition: background .15s;
    }
    .ap-acct-modal-back:hover { background: var(--ap-input-bg); }
    .ap-acct-modal-title {
        flex: 1;
        font-size: 15px;
        font-weight: 700;
        color: var(--ap-text);
        font-family: var(--ap-font);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .ap-acct-modal-close {
        width: 30px; height: 30px;
        border: none; background: none;
        cursor: pointer;
        color: var(--ap-text-muted);
        display: flex; align-items: center; justify-content: center;
        border-radius: 8px;
        transition: background .15s;
        padding: 0; flex-shrink: 0;
    }
    .ap-acct-modal-close:hover { background: var(--ap-input-bg); color: var(--ap-text); }

    #ap-acct-modal.ap-acct-modal--orders {
        background: #fff;
    }

    #ap-acct-modal.ap-acct-modal--orders .ap-acct-modal-header {
        border-bottom: 1px solid var(--ap-border);
        padding: 14px 16px;
    }

    #ap-acct-modal.ap-acct-modal--orders .ap-acct-modal-back {
        width: 32px;
        height: 32px;
        border: 1.5px solid var(--ap-border);
        border-radius: 9px;
        background: #fff;
    }

    #ap-acct-modal.ap-acct-modal--orders .ap-acct-modal-title {
        font-size: 15px;
        font-weight: 700;
        color: var(--ap-text);
    }

    #ap-acct-modal.ap-acct-modal--orders .ap-acct-modal-close {
        display: flex;
    }

    #ap-acct-modal.ap-acct-modal--order-detail {
        background: #fff;
    }

    #ap-acct-modal.ap-acct-modal--order-detail .ap-acct-modal-header {
        border-bottom: 1px solid var(--ap-border);
        padding: 14px 16px;
    }

    #ap-acct-modal.ap-acct-modal--order-detail .ap-acct-modal-back {
        width: 32px;
        height: 32px;
        border: 1.5px solid var(--ap-border);
        border-radius: 9px;
        background: #fff;
    }

    #ap-acct-modal.ap-acct-modal--order-detail .ap-acct-modal-title {
        font-size: 15px;
        font-weight: 700;
        color: var(--ap-text);
    }

    #ap-acct-modal.ap-acct-modal--order-detail .ap-acct-modal-close {
        display: flex;
    }

    .ap-acct-modal-body {
        flex: 1;
        overflow-y: auto;
        padding: 16px;
    }

    .ap-acct-modal-body .woocommerce-breadcrumb,
    .ap-acct-modal-body .rank-math-breadcrumb,
    .ap-acct-modal-body .yoast-breadcrumb,
    .ap-acct-modal-body .breadcrumb,
    .ap-acct-modal-body .breadcrumbs,
    .ap-acct-modal-body [typeof="BreadcrumbList"],
    .ap-acct-modal-body [aria-label="breadcrumb"],
    .ap-acct-modal-body nav.breadcrumb,
    .ap-acct-modal-body nav.breadcrumbs {
        display: none !important;
    }

    .ap-acct-spinner-wrap {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 40px 0;
    }
    .ap-acct-spinner {
        display: inline-block;
        width: 22px; height: 22px;
        border: 3px solid var(--ap-border);
        border-top-color: var(--ap-text, #eb161e);
        border-radius: 50%;
        animation: ap-spin .7s linear infinite;
    }
    .ap-acct-error {
        text-align: center;
        color: var(--ap-text-muted);
        font-size: .875rem;
        padding: 32px 16px;
        font-family: var(--ap-font);
    }

    .ap-skel {
        --ap-skel-base: #f3f0ec;
        --ap-skel-shine: #fbfaf8;
        display: grid;
        gap: 10px;
    }

    .ap-skel-line,
    .ap-skel-icon,
    .ap-skel-thumb,
    .ap-skel-dot,
    .ap-skel-track-steps span {
        display: block;
        position: relative;
        overflow: hidden;
        background: var(--ap-skel-base);
    }

    .ap-skel-line::after,
    .ap-skel-icon::after,
    .ap-skel-thumb::after,
    .ap-skel-dot::after,
    .ap-skel-track-steps span::after {
        content: "";
        position: absolute;
        inset: 0;
        transform: translateX(-100%);
        background: linear-gradient(90deg, transparent, var(--ap-skel-shine), transparent);
        animation: ap-skeleton-shimmer 1.15s infinite;
    }

    .ap-skel-line {
        width: 60%;
        height: 12px;
        border-radius: 999px;
        margin: 0 0 8px;
    }

    .ap-skel-icon,
    .ap-skel-thumb {
        width: 36px;
        height: 36px;
        border-radius: 9px;
        flex: 0 0 auto;
    }

    .ap-skel-thumb {
        width: 44px;
        height: 44px;
    }

    .ap-skel-dot {
        width: 18px;
        height: 18px;
        border-radius: 50%;
    }

    .ap-skel-w-20 { width: 20%; }
    .ap-skel-w-22 { width: 22%; }
    .ap-skel-w-24 { width: 24%; }
    .ap-skel-w-28 { width: 28%; }
    .ap-skel-w-30 { width: 30%; }
    .ap-skel-w-34 { width: 34%; }
    .ap-skel-w-36 { width: 36%; }
    .ap-skel-w-38 { width: 38%; }
    .ap-skel-w-40 { width: 40%; }
    .ap-skel-w-42 { width: 42%; }
    .ap-skel-w-44 { width: 44%; }
    .ap-skel-w-48 { width: 48%; }
    .ap-skel-w-56 { width: 56%; }
    .ap-skel-w-62 { width: 62%; }
    .ap-skel-w-64 { width: 64%; }
    .ap-skel-w-68 { width: 68%; }
    .ap-skel-w-74 { width: 74%; }
    .ap-skel-w-78 { width: 78%; }
    .ap-skel-w-86 { width: 86%; }
    .ap-skel-w-88 { width: 88%; }
    .ap-skel-w-92 { width: 92%; }
    .ap-skel-w-94 { width: 94%; }
    .ap-skel-gap-lg { margin-top: 22px; }

    .ap-skel-pill {
        width: 64px;
        height: 18px;
        border-radius: 999px;
    }

    .ap-skel-button {
        width: 112px;
        height: 34px;
        border-radius: 999px;
        margin: 0;
    }

    .ap-skel-label {
        width: 106px;
        height: 10px;
        margin-bottom: 8px;
    }

    .ap-skel-order-card {
        min-height: 89px;
        display: flex;
        justify-content: space-between;
        gap: 14px;
        padding: 14px;
        border: 1px solid #eee8e2;
        border-radius: 14px;
        background: #fff;
        box-sizing: border-box;
    }

    .ap-skel-order-card > div:first-child {
        min-width: 0;
        flex: 1;
    }

    .ap-skel-order-side {
        width: 84px;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .ap-skel-order-side .ap-skel-line {
        margin-left: auto;
    }

    .ap-skel-detail {
        gap: 24px;
    }

    .ap-skel-detail section {
        display: grid;
        gap: 0;
    }

    .ap-skel-track-card,
    .ap-skel-detail-card,
    .ap-skel-summary-card,
    .ap-skel-address-card,
    .ap-skel-address-card {
        border: 1px solid #eee8e2;
        border-radius: 14px;
        background: #fff;
        box-sizing: border-box;
    }

    .ap-skel-track-card {
        padding: 22px 14px 15px;
    }

    .ap-skel-track-steps {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 12px;
        padding-bottom: 18px;
        margin-bottom: 14px;
        border-bottom: 1px solid #f0ebe6;
    }

    .ap-skel-track-steps span {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        margin: 0 auto;
    }

    .ap-skel-detail-card {
        overflow: hidden;
    }

    .ap-skel-detail-item {
        display: flex;
        align-items: center;
        gap: 11px;
        padding: 15px;
        border-bottom: 1px solid #f0ebe6;
    }

    .ap-skel-detail-item:last-child {
        border-bottom: 0;
    }

    .ap-skel-detail-item > div {
        flex: 1;
    }

    .ap-skel-summary-card,
    .ap-skel-address-card {
        padding: 16px 15px;
    }

    .ap-skel-summary-card .ap-skel-line {
        height: 13px;
    }

    .ap-skel-summary-card .ap-skel-total {
        height: 16px;
        margin-top: 14px;
    }

    .ap-skel-address-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 2px;
    }

    .ap-skel-address-card {
        padding: 15px;
    }

    .ap-skel-address-top,
    .ap-skel-menu-row {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .ap-skel-address-top {
        margin-bottom: 12px;
    }

    .ap-skel-menu-row {
        min-height: 59px;
        padding: 10px 14px;
        border: 1px solid #eee8e2;
        border-radius: 14px;
        background: #fff;
        box-sizing: border-box;
    }

    .ap-skel-menu-row > div {
        flex: 1;
    }

    @keyframes ap-skeleton-shimmer {
        100% {
            transform: translateX(100%);
        }
    }

    body.woocommerce-account {
        background: #fff;
    }

    body.woocommerce-account .entry-title {
        display: none;
    }

    body.woocommerce-account .woocommerce-breadcrumb,
    body.woocommerce-account .rank-math-breadcrumb,
    body.woocommerce-account .yoast-breadcrumb,
    body.woocommerce-account .breadcrumb,
    body.woocommerce-account .breadcrumbs,
    body.woocommerce-account [typeof="BreadcrumbList"],
    body.woocommerce-account [aria-label="breadcrumb"],
    body.woocommerce-account nav.breadcrumb,
    body.woocommerce-account nav.breadcrumbs {
        display: none !important;
    }

    body.woocommerce-account .woocommerce {
        width: 100%;
        /*max-width: 360px;*/
        margin: 0 auto;
        /*padding: 28px 18px 36px;*/
        box-sizing: border-box;
        /*font-family: var(--ap-font);*/
    }

    .ap-mobile-account-head {
        display: flex;
        align-items: center;
        gap: 14px;
        margin: 8px 0 18px;
    }

    .ap-mobile-account-avatar {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: #e8e4df;
        border: 1px solid #d8d2ca;
        overflow: hidden;
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #8f8981;
        font-weight: 700;
        font-size: 20px;
    }

    .ap-mobile-account-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .ap-mobile-account-id {
        min-width: 0;
        display: grid;
        gap: 3px;
    }

    .ap-mobile-account-id strong {
        color: #090909;
        font-size: 17px;
        line-height: 1.2;
        font-weight: 800;
    }

    .ap-mobile-account-id span {
        color: #8d837c;
        font-size: 12px;
        line-height: 1.2;
    }

    .ap-mobile-account-nav {
        float: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .ap-mobile-account-nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .ap-mobile-account-nav ul::before {
        content: "ACCOUNT";
        display: block;
        color: #b5a9a2;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: .14em;
        margin: 0 0 8px;
    }

    .ap-mobile-account-nav li {
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
    }

    .ap-mobile-account-nav li:last-child a{
        margin-top: 15px;
    }

    .ap-mobile-account-nav li.woocommerce-MyAccount-navigation-link--dashboard {
        display: none;
    }

    .ap-mobile-account-nav li a {
        min-height: 64px;
        display: flex !important;
        align-items: center;
        gap: 14px;
        color: #050505 !important;
        text-decoration: none !important;
        background: #fff !important;
        border: 1px solid #eee8e2;
        border-bottom-width: 0;
        padding: 11px 14px !important;
        box-sizing: border-box;
        box-shadow: none !important;
    }

    .ap-mobile-account-nav li::before,
    .ap-mobile-account-nav li a::before,
    .ap-mobile-account-nav li a::after {
        display: none !important;
        content: none !important;
    }

    .ap-mobile-account-nav li.ap-mobile-account-first a {
        border-top-left-radius: 14px;
        border-top-right-radius: 14px;
    }

    .ap-mobile-account-nav li.ap-mobile-account-last a {
        border-bottom-width: 1px;
        border-bottom-left-radius: 14px;
        border-bottom-right-radius: 14px;
    }

    .ap-mobile-account-nav li.woocommerce-MyAccount-navigation-link--wishlist::before {
        content: "WISHLIST";
        display: block;
        color: #b5a9a2;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: .14em;
        margin: 18px 0 8px;
    }

    .ap-mobile-account-nav li.woocommerce-MyAccount-navigation-link--wishlist a {
        border-width: 1px;
        border-radius: 14px;
    }

    .ap-mobile-account-icon {
        width: 30px;
        height: 30px;
        border-radius: 5px;
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .ap-mobile-account-icon svg {
        width: 25px;
        height: 25px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .ap-mobile-account-icon--sparkles {
        background: #eaf5ff;
        color: #5a9fce;
    }

    .ap-mobile-account-icon--bag {
        background: #edf9ef;
        color: #52a665;
    }

    .ap-mobile-account-icon--pin {
        background: #f5efff;
        color: #8d66dc;
    }

    .ap-mobile-account-icon--user {
        background: #fff0f0;
        color: #d96969;
    }

    .ap-mobile-account-icon--id-card {
        background: #fff4e0;
        color: #e09127;
    }

    .ap-mobile-account-icon--heart {
        background: #fff0f5;
        color: #e45f7d;
    }

    .ap-mobile-account-icon--coupon,
    .ap-mobile-account-icon--credit {
        background: #fff0f0;
        color: #d96969;
    }

    .ap-mobile-account-text {
        min-width: 0;
        flex: 1;
        display: grid;
        gap: 2px;
    }

    .ap-mobile-account-text strong {
        font-size: 14px;
        line-height: 1.15;
        font-weight: 700;
        color: #030303;
    }

    .ap-mobile-account-text small {
        font-size: 11px;
        line-height: 1.15;
        color: #a2938c;
    }

    .ap-mobile-account-badge {
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        border-radius: 999px;
        background: #111;
        color: #fff;
        font-size: 10px;
        font-weight: 800;
        line-height: 18px;
        text-align: center;
        box-sizing: border-box;
    }

    .ap-mobile-account-arrow {
        color: #d1c8c0;
        font-size: 24px;
        line-height: 1;
        margin-left: 2px;
    }

    .ap-mobile-account-logout {
        margin-top: 10px !important;
    }

    .ap-mobile-account-logout a {
        min-height: 44px;
        justify-content: center;
        gap: 7px;
        border-width: 1px !important;
        border-radius: 12px !important;
        color: #d92923 !important;
    }

    .ap-mobile-account-logout .ap-mobile-account-icon {
        width: 18px;
        height: 18px;
        background: transparent;
        color: currentColor;
    }

    .ap-mobile-account-logout .ap-mobile-account-icon svg {
        width: 15px;
        height: 15px;
    }

    .ap-mobile-account-logout .ap-mobile-account-text {
        flex: 0 0 auto;
    }

    .ap-mobile-account-logout .ap-mobile-account-text strong {
        color: currentColor;
        font-size: 14px;
        font-weight: 500;
    }

    .ap-mobile-account-logout .ap-mobile-account-arrow,
    .ap-mobile-account-logout .ap-mobile-account-badge {
        display: none;
    }

    .ap-mobile-orders-list {
        display: grid;
        gap: 10px;
        padding: 0 0 24px;
    }

    .ap-mobile-order-card {
        min-height: 89px;
        display: flex;
        align-items: stretch;
        justify-content: space-between;
        gap: 12px;
        padding: 14px 14px 13px;
        border: 1px solid #eee8e2;
        border-radius: 14px;
        background: #fff;
        color: #050505;
        text-decoration: none !important;
        box-sizing: border-box;
    }

    .ap-mobile-order-main,
    .ap-mobile-order-side {
        display: flex;
        flex-direction: column;
    }

    .ap-mobile-order-main {
        min-width: 0;
        flex: 1;
    }

    .ap-mobile-order-main strong {
        color: #050505;
        font-size: 14px;
        font-weight: 800;
        line-height: 1.15;
    }

    .ap-mobile-order-main small {
        color: #9b8d85;
        font-size: 11px;
        line-height: 1.3;
        margin-top: 4px;
    }

    .ap-mobile-order-main em {
        color: #8f827a;
        font-size: 12px;
        line-height: 1.2;
        font-style: normal;
        margin-top: auto;
        padding-top: 15px;
    }

    .ap-mobile-order-side {
        align-items: flex-end;
        justify-content: space-between;
        flex: 0 0 auto;
        text-align: right;
    }

    .ap-mobile-order-side > strong {
        color: #050505;
        font-size: 16px;
        font-weight: 800;
        line-height: 1;
    }

    .ap-mobile-order-status {
        min-width: 64px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 4px 10px;
        border-radius: 999px;
        font-size: 10px;
        font-weight: 700;
        line-height: 1;
        background: #f1eef8;
        color: #7e55d8;
    }

    .ap-mobile-order-status--processing {
        background: #eef6fb;
        color: #347fb6;
    }

    .ap-mobile-order-status--completed,
    .ap-mobile-order-status--delivered {
        background: #eef8ee;
        color: #4f9c51;
    }

    .ap-mobile-order-status--pending,
    .ap-mobile-order-status--pending-payment,
    .ap-mobile-order-status--on-hold {
        background: #fff7eb;
        color: #c78a2a;
    }

    .ap-mobile-order-status--cancelled,
    .ap-mobile-order-status--failed,
    .ap-mobile-order-status--refunded {
        background: #fff0ef;
        color: #d95656;
    }

    .ap-mobile-detail-page {
        display: grid;
        gap: 24px;
        padding: 0 0 28px;
    }

    .ap-mobile-detail-section {
        display: grid;
        gap: 8px;
    }

    .ap-mobile-detail-section h3 {
        margin: 0;
        color: #a89b93;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: .14em;
        line-height: 1.2;
    }

    .ap-mobile-track-card,
    .ap-mobile-detail-card,
    .ap-mobile-summary-card,
    .ap-mobile-address-card {
        border: 1px solid #eee8e2;
        border-radius: 14px;
        background: #fff;
        box-sizing: border-box;
    }

    .ap-mobile-track-card {
        padding: 22px 14px 15px;
    }

    .ap-mobile-track-steps {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        position: relative;
        gap: 0;
        padding-bottom: 16px;
        border-bottom: 1px solid #f0ebe6;
    }

    .ap-mobile-track-steps::before {
        content: none;
    }

    .ap-mobile-track-step::before {
        content: "";
        position: absolute;
        top: 9px;
        left: calc(-50% + 12px);
        right: calc(50% + 12px);
        height: 2px;
        background: #e6e1dd;
        z-index: 0;
    }

    .ap-mobile-track-step:first-child::before {
        content: none;
    }

    .ap-mobile-track-step.is-done::before {
        background: #62a5d9;
    }

    .ap-mobile-track-step.is-cancelled.is-done::before,
    .ap-mobile-track-step.is-refunded.is-done::before {
        background: #d96969;
    }

    .ap-mobile-track-step {
        min-width: 0;
        position: relative;
        z-index: 1;
        display: grid;
        justify-items: center;
        gap: 6px;
        text-align: center;
    }

    .ap-mobile-track-step i {
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        border: 2px solid #e6e1dd;
        background: #fff;
        color: #fff;
        font-size: 10px;
        font-style: normal;
        line-height: 1;
        box-sizing: border-box;
    }

    .ap-mobile-track-step.is-done i {
        border-color: #62a5d9;
        background: #62a5d9;
    }

    .ap-mobile-track-step.is-current i {
        border-color: #62a5d9;
        /*background: #fff;*/
        box-shadow: 0 0 0 3px rgba(98, 165, 217, .18);
    }

    .ap-mobile-track-step.is-cancelled.is-done i,
    .ap-mobile-track-step.is-refunded.is-done i {
        border-color: #d96969;
        background: #d96969;
        color: #fff;
        font-weight: 700;
    }

    .ap-mobile-track-step.is-cancelled.is-current i,
    .ap-mobile-track-step.is-refunded.is-current i {
        border-color: #d96969;
        box-shadow: 0 0 0 3px rgba(217, 105, 105, .22);
    }

    .ap-mobile-track-step.is-cancelled.is-current small,
    .ap-mobile-track-step.is-refunded.is-current small {
        color: #c0392b;
    }

    .ap-mobile-track-step small {
        color: #7c8b97;
        font-size: 10px;
        line-height: 1.15;
    }

    .ap-mobile-track-step.is-current small {
        color: #050505;
        font-weight: 800;
    }

    .ap-mobile-track-note {
        color: #66737d;
        font-size: 12px;
        line-height: 1.45;
        padding-top: 13px;
    }

    .ap-mobile-track-note strong {
        color: #050505;
    }

    .ap-mobile-detail-card {
        overflow: hidden;
    }

    .ap-mobile-detail-item {
        display: flex;
        align-items: center;
        gap: 11px;
        padding: 15px;
        border-bottom: 1px solid #f0ebe6;
    }

    .ap-mobile-detail-item:last-child {
        border-bottom: 0;
    }

    .ap-mobile-detail-thumb {
        width: 44px;
        height: 44px;
        border: 1px solid #eee8e2;
        border-radius: 8px;
        background: #faf8f5;
        color: #c0b8b0;
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        overflow: hidden;
    }

    .ap-mobile-detail-thumb svg {
        width: 24px;
        height: 24px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .ap-mobile-detail-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .ap-mobile-detail-item-main {
        min-width: 0;
        flex: 1;
        display: grid;
        gap: 4px;
    }

    .ap-mobile-detail-item-main strong {
        color: #050505;
        font-size: 14px;
        font-weight: 800;
        line-height: 1.15;
    }

    .ap-mobile-detail-item-main small {
        color: #9b8d85;
        font-size: 11px;
        line-height: 1.25;
    }

    .ap-mobile-detail-price {
        color: #050505;
        font-size: 15px;
        font-weight: 800;
        white-space: nowrap;
    }

    .ap-mobile-summary-card {
        padding: 16px 15px;
    }

    .ap-mobile-summary-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        color: #5e5650;
        font-size: 13px;
        line-height: 1.35;
        padding: 5px 0;
    }

    .ap-mobile-summary-row strong {
        color: #5e5650;
        font-weight: 500;
        text-align: right;
    }

    .ap-mobile-summary-row--total {
        margin-top: 5px;
        padding-top: 12px;
        border-top: 1px solid #eee8e2;
        color: #050505;
        font-size: 15px;
        font-weight: 800;
    }

    .ap-mobile-summary-row--total strong {
        color: #050505;
        font-size: 17px;
        font-weight: 800;
    }

    .ap-mobile-address-card {
        display: grid;
        gap: 5px;
        padding: 15px;
        color: #5e5650;
        font-size: 13px;
        line-height: 1.35;
    }

    .ap-mobile-address-card strong {
        color: #050505;
        font-size: 14px;
        font-weight: 800;
        margin-bottom: 2px;
    }

    #ap-acct-modal.ap-acct-modal--account-details .ap-acct-modal-body {
        padding: 15px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .ap-account-details-head {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 0;
        margin: 0;
        border: 0;
    }

    .ap-account-details-avatar-wrap {
        position: relative;
        flex: 0 0 auto;
    }

    .ap-account-details-avatar {
        width: 64px;
        height: 64px;
        border-radius: 50%;
        overflow: hidden;
        background: linear-gradient(135deg, #F5A623 0%, #F7C96A 100%);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        font-size: 22px;
        font-weight: 600;
        letter-spacing: -0.5px;
        cursor: pointer;
    }

    .ap-account-details-camera {
        position: absolute;
        right: 0;
        bottom: 0;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        border: 2px solid #fff;
        background: #fff;
        color: #555;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
    }

    .ap-account-details-camera svg {
        width: 11px;
        height: 11px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.4;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .ap-account-details-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .ap-account-details-id {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .ap-account-details-id strong {
        color: #1A1A18;
        font-size: 14px;
        font-weight: 500;
        line-height: 1.2;
    }

    .ap-account-details-id span {
        color: #7A7A72;
        font-size: 12px;
        line-height: 1.25;
        word-break: break-word;
    }

    .ap-account-photo-btn {
        width: max-content;
        min-height: 28px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-top: 4px;
        border: 1px solid oklch(0.90 0.06 70);
        border-radius: 6px;
        background: oklch(0.97 0.04 70);
        color: #D4891A;
        padding: 6px 12px;
        font-size: 13px;
        font-weight: 500;
        line-height: 1;
        box-shadow: none;
        cursor: pointer;
        transition: background .15s;
    }

    .ap-account-photo-btn:hover {
        background: oklch(0.94 0.06 70);
    }

    .ap-account-photo-btn svg {
        width: 12px;
        height: 12px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.6;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .ap-account-photo-btn:disabled {
        cursor: wait;
        opacity: .72;
    }

    #ap-acct-modal.ap-acct-modal--account-details form.woocommerce-EditAccountForm,
    #ap-acct-modal.ap-acct-modal--account-details form.edit-account {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px 12px;
        margin: 0;
    }

    #ap-acct-modal-body form.woocommerce-EditAccountForm:not(.ap-account-details-form),
    #ap-acct-modal-body form.edit-account:not(.ap-account-details-form) {
        visibility: hidden;
    }

    .ap-account-section-title {
        grid-column: 1 / -1;
        margin: 0;
        color: #7A7A72;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: .08em;
        line-height: 1.2;
        text-transform: uppercase;
    }

    #ap-acct-modal.ap-acct-modal--account-details fieldset {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px 12px;
        margin: 8px 0 0;
        padding: 20px 0 0;
        border: 0;
        border-top: 1px solid #E2E2DC;
    }

    #ap-acct-modal.ap-acct-modal--account-details legend {
        grid-column: 1 / -1;
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
        color: #7A7A72;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    #ap-acct-modal.ap-acct-modal--account-details .form-row {
        grid-column: 1 / -1;
        width: 100%;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 5px;
        float: none;
    }

    #ap-acct-modal.ap-acct-modal--account-details .form-row-first {
        grid-column: 1 / 2;
        width: 100%;
        margin: 0;
        float: none;
        clear: none;
    }

    #ap-acct-modal.ap-acct-modal--account-details .form-row-last {
        grid-column: 2 / 3;
        width: 100%;
        margin: 0;
        float: none;
        clear: none;
    }

    #ap-acct-modal.ap-acct-modal--account-details fieldset .form-row,
    #ap-acct-modal.ap-acct-modal--account-details fieldset .form-row-first,
    #ap-acct-modal.ap-acct-modal--account-details fieldset .form-row-last {
        grid-column: 1 / -1;
        width: 100%;
    }

    #ap-acct-modal.ap-acct-modal--account-details .wpua-edit-container,
    #ap-acct-modal.ap-acct-modal--account-details #wp-user-avatar,
    #ap-acct-modal.ap-acct-modal--account-details .simple-local-avatar-photo,
    #ap-acct-modal.ap-acct-modal--account-details #simple-local-avatar-block,
    #ap-acct-modal.ap-acct-modal--account-details .woocommerce-account-avatar,
    #ap-acct-modal.ap-acct-modal--account-details .user-profile-picture,
    #ap-acct-modal.ap-acct-modal--account-details form .form-row:has(input[type="file"]),
    #ap-acct-modal.ap-acct-modal--account-details form > p:has(input[type="file"]),
    #ap-acct-modal.ap-acct-modal--account-details form fieldset:has(input[type="file"]):not(:has(input[type="password"])) {
        display: none !important;
    }

    #ap-acct-modal.ap-acct-modal--account-details .form-row-wide {
        grid-column: 1 / -1;
        clear: none;
    }

    #ap-acct-modal.ap-acct-modal--account-details label {
        display: flex;
        align-items: center;
        gap: 3px;
        margin: 0;
        color: #000;
        font-size: 13px;
        font-weight: 500;
        line-height: 1.2;
    }

    #ap-acct-modal.ap-acct-modal--account-details .required {
        color: #F5A623;
        font-size: 12px;
        text-decoration: none;
    }

    #ap-acct-modal.ap-acct-modal--account-details input.input-text,
    #ap-acct-modal.ap-acct-modal--account-details input[type="text"],
    #ap-acct-modal.ap-acct-modal--account-details input[type="email"],
    #ap-acct-modal.ap-acct-modal--account-details input[type="password"] {
        width: 100%;
        height: 42px;
        border: 1.5px solid #E2E2DC;
        border-radius: 8px;
        background: #FAFAF8;
        color: #1A1A18;
        padding: 0 12px;
        font-size: 14px;
        box-shadow: none;
        box-sizing: border-box;
        outline: none;
        transition: border-color .15s, background .15s, box-shadow .15s;
    }

    #ap-acct-modal.ap-acct-modal--account-details input.input-text:focus,
    #ap-acct-modal.ap-acct-modal--account-details input[type="text"]:focus,
    #ap-acct-modal.ap-acct-modal--account-details input[type="email"]:focus,
    #ap-acct-modal.ap-acct-modal--account-details input[type="password"]:focus {
        border-color: #F5A623;
        background: #fff;
        box-shadow: 0 0 0 3px oklch(0.95 0.08 70 / 0.5);
    }

    #ap-acct-modal.ap-acct-modal--account-details input::placeholder {
        color: #C0C0B8;
    }

    #ap-acct-modal.ap-acct-modal--account-details input[type="password"],
    #ap-acct-modal.ap-acct-modal--account-details .ap-account-pass-wrap input[type="text"] {
        padding-right: 42px;
    }

    .ap-account-pass-wrap {
        position: relative;
        display: block;
        width: 100%;
    }

    .ap-account-pass-toggle {
        position: absolute;
        top: 50%;
        right: 12px;
        width: 24px;
        height: 24px;
        transform: translateY(-50%);
        border: 0;
        background: transparent;
        color: #7A7A72;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        box-shadow: none;
        cursor: pointer;
        transition: color .15s;
    }

    .ap-account-pass-toggle:hover {
        color: #1A1A18;
    }

    .ap-account-pass-toggle svg {
        width: 16px;
        height: 16px;
    }

    #ap-acct-modal.ap-acct-modal--account-details em {
        display: block;
        margin-top: 3px;
        color: #7A7A72;
        font-size: 12px;
        font-style: normal;
        line-height: 1.4;
    }

    #ap-acct-modal.ap-acct-modal--account-details p:last-child {
        grid-column: 1 / -1;
        display: flex;
        /*align-items: center;*/
        justify-content: space-between;
        gap: 12px;
        margin: 8px 0 0;
        padding: 0;
    }

    .ap-account-details-cancel {
        min-width: 0;
        height: auto;
        border: 0;
        background: transparent;
        color: #7A7A72;
        padding: 0;
        font-size: 13px;
        font-weight: 400;
        box-shadow: none;
        cursor: pointer;
        text-decoration: none;
        transition: color .15s;
    }

    .ap-account-details-cancel:hover {
        color: #1A1A18;
    }

    #ap-acct-modal.ap-acct-modal--account-details button.button,
    #ap-acct-modal.ap-acct-modal--account-details .woocommerce-Button {
        min-width: 0;
        height: 44px;
        border: 0;
        border-radius: 8px;
        background: #F5A623 !important;
        color: #fff !important;
        padding: 0 28px;
        font-size: 14px;
        font-weight: 600;
        letter-spacing: 0.01em;
        box-shadow: none;
        cursor: pointer;
        transition: background .15s, transform .1s;
    }

    #ap-acct-modal.ap-acct-modal--account-details button.button:hover,
    #ap-acct-modal.ap-acct-modal--account-details .woocommerce-Button:hover {
        background: #D4891A !important;
    }

    #ap-acct-modal.ap-acct-modal--account-details button.button:active,
    #ap-acct-modal.ap-acct-modal--account-details .woocommerce-Button:active {
        transform: scale(0.98);
    }
}

/* ── Loyalty Rules Table ──────────────────────────────────── */
.ap-loyalty-rules-wrap {
    margin-top: 4px;
}
.ap-loyalty-rules-title {
    font-size: .9rem;
    font-weight: 700;
    color: var(--ap-text);
    margin: 0 0 10px;
    letter-spacing: .01em;
}
.ap-loyalty-table-scroll {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--ap-border);
}
#auth-loyal-rules-table,
.ap-loyal-rules-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .8rem;
    font-family: var(--ap-font);
}
#auth-loyal-rules-table thead tr,
.ap-loyal-rules-table thead tr {
    /*background: var(--herlan-primary-color, #eb161e);*/
}
#auth-loyal-rules-table thead th,
.ap-loyal-rules-table thead th {
    padding: 9px 12px;
    /*color: #fff;*/
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
    letter-spacing: .02em;
}
#auth-loyal-rules-table thead th.ap-col-num,
#auth-loyal-rules-table tbody td.ap-col-num,
.ap-loyal-rules-table thead th.ap-col-num,
.ap-loyal-rules-table tbody td.ap-col-num {
    width: 32px;
    text-align: center;
}
#auth-loyal-rules-table tbody tr,
.ap-loyal-rules-table tbody tr {
    border-bottom: 1px solid var(--ap-border);
    transition: background .15s;
}
#auth-loyal-rules-table tbody tr:last-child,
.ap-loyal-rules-table tbody tr:last-child {
    border-bottom: none;
}
#auth-loyal-rules-table tbody tr:nth-child(even),
.ap-loyal-rules-table tbody tr:nth-child(even) {
    background: #fafafa;
}
#auth-loyal-rules-table tbody tr:hover,
.ap-loyal-rules-table tbody tr:hover {
    background: var(--ap-primary-light);
}
#auth-loyal-rules-table tbody td,
.ap-loyal-rules-table tbody td {
    padding: 9px 12px;
    color: var(--ap-text);
    vertical-align: top;
    line-height: 1.45;
}
.ap-rule-hidden { display: none; }

/* Loading row */
.ap-rule-loading-row td,
.ap-rule-empty {
    text-align: center;
    color: var(--ap-text-muted);
    padding: 16px !important;
    font-size: .8rem;
}
.ap-rule-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid var(--ap-border);
    border-top-color: var(--ap-text, #eb161e);
    border-radius: 50%;
    animation: ap-spin .7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

/* View More button */
#ap-loyalty-rules-footer {
    text-align: center;
    margin-top: 8px;
}
#ap-loyalty-view-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--ap-text, #eb161e);
    background: none;
    border: 1px solid var(--ap-text, #eb161e);
    border-radius: 20px;
    padding: 5px 16px;
    cursor: pointer;
    font-family: var(--ap-font);
    transition: background var(--ap-transition), color var(--ap-transition);
}
#ap-loyalty-view-more:hover {
    background: var(--ap-text, #eb161e);
    color: #fff;
}

/*custom css codes start*/
#ap-panel-register input {
    border: 0px !important;
    box-shadow: 0px 0px !important;
}
#ap-panel-login input {
    border: 0px !important;
    box-shadow: 0px 0px !important;
}
/*.ap-panel-header {text-align: center}*/
/*.ap-dialog {background-color: #fafafa !important;}*/
/*.ap-dialog .ap-input-wrap { background-color: white; }*/
#ap-sc-phone {
    border: 0px!important;
    box-shadow: 0px!important;
}
#ap-sc-title {margin-top: 20px!important; font-size: 22px!important;}
#ap-close-btn {border: 0px!important;}
.ap-acct-modal-body a:has(.fa-reply) {
    display: none!important;
}
/*custom css codes ends*/

/* ── Inline Form (My Account page / [auth_popup_form] shortcode) ─────── */
.ap-inline-wrap {
    font-family: var(--ap-font);
    width: 100%;
    max-width: 480px;
    margin: 36px auto;
    background: var(--ap-bg);
    border-radius: var(--ap-radius-dialog);
    box-shadow: var(--ap-shadow);
    padding: 28px 32px 32px;
    box-sizing: border-box;
}

/* Visible tab bar for inline form */
.ap-inline-tabs {
    display: flex !important;
    gap: 4px;
    background: var(--ap-input-bg);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 24px;
    position: relative;
}

.ap-inline-tabs .ap-tab {
    flex: 1;
    padding: 9px 0;
    font-size: .88rem;
    font-weight: 600;
    border: none;
    background: transparent;
    border-radius: 9px;
    cursor: pointer;
    color: var(--ap-text-muted);
    transition: color var(--ap-transition), background var(--ap-transition);
    position: relative;
    z-index: 1;
}

.ap-inline-tabs .ap-tab.active {
    color: var(--ap-text);
    background: var(--ap-bg);
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

/* Hide the "Forgot" tab — it appears only when triggered via link */
.ap-inline-tabs .ap-tab-forgot-hidden {
    display: none;
}

/* Suppress close button — not needed on a page */
.ap-inline-wrap .ap-close {
    display: none !important;
}

/* Input overrides inside inline form (match popup custom css) */
.ap-inline-wrap #ap-panel-register input,
.ap-inline-wrap #ap-panel-login input {
    border: 0 !important;
    box-shadow: none !important;
}
.ap-inline-wrap #ap-sc-phone {
    border: 0 !important;
    box-shadow: none !important;
}

@media (max-width: 540px) {
    .ap-inline-wrap {
        border-radius: 16px;
        padding: 22px 18px 26px;
        margin: 20px auto;
    }
}
