/* Base */
.az-auth-modal-open {
    overflow: hidden;
}

.az-auth-widget,
.az-auth-card,
.az-auth-logged {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.az-otp-auto-trigger {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9998;
}

.az-otp-auto-trigger .az-auth-widget,
.az-otp-auto-trigger .az-auth-logged {
    margin: 0;
}

.az-auth-widget * ,
.az-auth-card * {
    box-sizing: border-box;
}

.az-auth-trigger-group {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.az-trigger-btn,
.az-primary-btn,
.az-secondary-btn,
.az-full-btn {
    border: 0;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
    text-decoration: none;
    line-height: 1.4;
}

.az-trigger-btn,
.az-primary-btn,
.az-secondary-btn {
    padding: 14px 15px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.az-trigger-btn,
.az-primary-btn {
    background: linear-gradient(135deg, #1f6fff 0%, #0f4dff 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(15, 77, 255, .18);
}

.az-trigger-btn:hover,
.az-primary-btn:hover,
.az-secondary-btn:hover,
.az-social-btn:hover {
    transform: translateY(-1px);
}

.az-trigger-btn:focus,
.az-trigger-btn:active,
.az-primary-btn,
.az-primary-btn:hover,
.az-primary-btn:focus,
.az-primary-btn:active,
.az-primary-btn:visited,
.az-auth-logged .az-primary-btn,
.az-auth-logged .az-primary-btn:hover,
.az-auth-logged .az-primary-btn:focus,
.az-auth-logged .az-primary-btn:active,
.az-auth-logged .az-primary-btn:visited {
    color: #fff;
    text-decoration: none;
}

.az-trigger-btn--register,
.az-secondary-btn {
    background: #eef4ff;
    color: #1845d8;
    box-shadow: none;
}

.az-auth-logged {
    position: relative;
    display: inline-flex;
}

.az-auth-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: max(100%, 240px);
    height: 14px;
    background: transparent;
}

.az-auth-logged .az-primary-btn {
    min-width: 100px;
    gap: 7px;
}

.az-auth-logged .az-account-toggle {
    position: relative;
    z-index: 2;
}

.az-auth-logged .az-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.az-auth-logged .az-btn-icon svg,
.az-auth-logged .az-btn-caret svg,
.az-auth-dropdown-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.az-auth-logged .az-btn-label {
    display: inline-flex;
    align-items: center;
}

.az-auth-logged .az-btn-caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: 2px;
    transition: transform .2s ease;
}

.az-auth-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 240px;
    padding: 10px;
    border: 1px solid #dbe3f3;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 40px rgba(15, 23, 42, .14);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.az-auth-dropdown:hover .az-auth-dropdown-menu,
.az-auth-dropdown:focus-within .az-auth-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.az-auth-dropdown:hover .az-btn-caret,
.az-auth-dropdown:focus-within .az-btn-caret {
    transform: rotate(180deg);
}

.az-auth-dropdown-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 12px;
    border-radius: 12px;
    color: #172554;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.45;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.az-auth-dropdown-link:hover,
.az-auth-dropdown-link:focus,
.az-auth-dropdown-link:active,
.az-auth-dropdown-link:visited {
    color: #0f4dff;
    text-decoration: none;
}

.az-auth-dropdown-link:hover,
.az-auth-dropdown-link:focus {
    background: #eef4ff;
    transform: translateX(2px);
}

.az-auth-dropdown-link.is-logout {
    color: #b42318;
}

.az-auth-dropdown-link.is-logout:hover,
.az-auth-dropdown-link.is-logout:focus,
.az-auth-dropdown-link.is-logout:active,
.az-auth-dropdown-link.is-logout:visited {
    color: #b42318;
}

.az-auth-dropdown-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.az-auth-dropdown-label {
    display: inline-flex;
    align-items: center;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
    margin: 24px 0 32px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 10px;
    background: #fff;
    border: 1px solid #dbe3f3;
    border-radius: 24px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, .08);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li + li {
    margin-top: 6px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    color: #0f172a;
    text-decoration: none;
    text-transform: unset;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .01em;
    transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 14px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1d4ed8;
    font-size: 18px;
    line-height: 1;
    box-shadow: inset 0 0 0 1px rgba(29, 78, 216, .08);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:focus,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    background: linear-gradient(135deg, #f8fbff 0%, #edf4ff 100%);
    color: #0f4dff;
    box-shadow: 0 14px 28px rgba(15, 77, 255, .10);
    transform: translateX(4px);
    text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a:focus {
    background: linear-gradient(135deg, #fff5f5 0%, #ffebeb 100%);
    color: #c81e1e;
    box-shadow: 0 14px 28px rgba(200, 30, 30, .10);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--dashboard a::before {
    content: "🏠";
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--orders a::before {
    content: "🧾";
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--skysimhub-esims a::before {
    content: "📶";
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--downloads {
    display: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--downloads a::before {
    content: "⬇️";
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--edit-address a::before {
    content: "📍";
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--edit-account a::before {
    content: "👤";
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--cong-tac-vien a::before {
    content: "🤝";
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a::before {
    content: "↩️";
}

@media (max-width: 767px) {
    .woocommerce-account .woocommerce-MyAccount-navigation ul {
        padding: 8px;
        border-radius: 20px;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation ul li a {
        padding: 12px 14px;
        border-radius: 16px;
        font-size: 14px;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation ul li a::before {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        border-radius: 12px;
        font-size: 16px;
    }
}

.az-auth-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 99999;
}
.az-field-group input {
    min-height: 50px !important;
    border: 1px solid #0341f175 !important;
    border-radius: 12px !important;
}
.az-auth-modal.is-open {
    display: block;
}

.az-auth-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 18, 35, .58);
}

.az-auth-dialog {
    position: relative;
    z-index: 2;
    width: min(100%, 470px);
    margin: 32px auto;
    max-height: calc(100vh - 64px);
    /*overflow-y: auto; */
    border-radius: 18px;
}

.az-auth-close {
    position: absolute;
    top: 0px;
    right: -65px;
    border: 0;
    background: transparent;
    font-size: 34px;
    line-height: 1;
    color: #3c4764;
    cursor: pointer;
    z-index: 3;
    min-height: 33px;
    min-width: 27px;
}

.az-auth-card {
    width: 100%;
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .14);
}

.az-auth-card--standalone {
    max-width: 470px;
    margin: 30px auto;
}

.az-auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    background: #f8f9fd;
    padding: 6px;
    border-radius: 16px;
    margin-bottom: 18px;
    box-shadow: inset 0 1px 3px rgba(15, 23, 42, .05);
}

.az-auth-tab {
    border: 0;
    background: transparent;
    color: #1f2937;
    border-radius: 12px;
    padding: 6px 15px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
}

.az-auth-tab.is-active {
    background: linear-gradient(135deg, #1f6fff 0%, #0f4dff 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(15, 77, 255, .16);
}

.az-auth-view {
    display: none;
}

.az-auth-view.is-active {
    display: block;
}

.az-view-title {
    font-size: 24px;
    line-height: 1.3;
    font-weight: 800;
    margin-bottom: 8px;
    color: #111827;
    text-align: center;
}

.az-social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 12px 0 20px;
}

.az-social-btn {
    min-height: 50px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(15, 23, 42, .04);
}

.az-social-mark {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.az-social-btn--facebook .az-social-mark {
    color: #1877f2;
    text-transform: lowercase;
}

.az-social-btn--google .az-social-mark {
    color: #db4437;
}

.az-form {
    margin: 0;
}

.az-field-group {
    margin-bottom: 16px;
}

.az-label {
    display: block;
    margin-bottom: 8px;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.az-label span {
    color: #ef4444;
}

.az-input {
    width: 100%;
    height: 52px;
    border-radius: 12px;
    border: 1px solid #d9ddea;
    background: #fff;
    padding: 0 16px;
    font-size: 15px;
    color: #111827;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.az-input:focus {
    border-color: #1f6fff;
    box-shadow: 0 0 0 4px rgba(31, 111, 255, .1);
}

.az-input::placeholder {
    color: #a1a7b3;
}

.az-password-wrap {
    position: relative;
}

.az-password-wrap .az-input {
    padding-right: 48px;
}

.az-password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #9aa3b2;
    cursor: pointer;
    font-size: 18px;
}

.az-password-toggle.is-active {
    color: #1f6fff;
}

.az-note {
    margin: 8px 0 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.55;
}

.az-note--center {
    text-align: center;
}

.az-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
}

.az-checkbox input {
    margin-top: 3px;
}

.az-checkbox a {
    color: #0f4dff;
    font-weight: 600;
    text-decoration: none;
}

.az-checkbox a:hover,
.az-link-button:hover,
.az-secondary-link:hover {
    text-decoration: underline;
}

.az-inline-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 14px 0 18px;
}

.az-inline-row--between {
    justify-content: space-between;
}

.az-inline-row--center {
    justify-content: center;
}

.az-checkbox--inline {
    margin-top: 0;
    align-items: center;
}

.az-link-button,
.az-secondary-link {
    border: 0;
    background: transparent;
    padding: 0;
    color: #111827;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.az-secondary-link {
    color: #1f6fff;
}

.az-full-btn {
    width: 100%;
    min-height: 52px;
    font-size: 16px;
}

.az-secondary-btn {
    margin-bottom: 12px;
}

.az-otp-box {
    display: none;
}

.az-register-form.otp-sent .az-otp-box {
    display: block;
}

.az-message,
.az-global-message,
.az-inline-notice {
    border-radius: 12px;
    padding: 12px 14px;
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.55;
}

.az-message {
    display: none;
}

.az-message.is-error,
.az-message.is-success {
    display: block;
}

.az-message.is-error,
.az-global-message--error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.az-message.is-success,
.az-global-message--success,
.az-inline-notice {
    background: #effaf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.az-global-message {
    margin-bottom: 16px;
}

.az-inline-notice {
    margin-top: 0;
    margin-bottom: 14px;
    text-align: center;
}

.az-primary-btn.is-loading,
.az-secondary-btn.is-loading,
.az-trigger-btn.is-loading,
.az-secondary-link.is-loading {
    opacity: .7;
    cursor: wait;
}

/* WooCommerce */
#az-woo-send-otp {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Mobile */
@media (max-width: 575px) {
    .az-otp-auto-trigger {
        right: 12px;
        left: 12px;
        bottom: 12px;
    }

    .az-otp-auto-trigger .az-trigger-btn {
        width: 100%;
    }

    .az-auth-dialog {
        width: calc(100% - 16px);
        margin: 8px auto;
        max-height: calc(100vh - 16px);
    }

    .az-auth-card {
        border-radius: 16px;
        padding: 18px 16px 20px;
    }

    .az-auth-close {
        top: 8px;
        right: 10px;
    }

    .az-auth-tabs {
        gap: 8px;
        padding: 4px;
        margin-bottom: 16px;
    }

    .az-auth-tab {
        padding: 12px 10px;
        font-size: 15px;
    }

    .az-social-grid {
        gap: 10px;
        margin-bottom: 16px;
    }

    .az-social-btn {
        min-height: 46px;
    }

    .az-social-mark {
        font-size: 24px;
    }

    .az-trigger-btn {
        width: 100%;
    }

    .az-inline-row--between {
        flex-direction: column;
        align-items: flex-start;
    }
}
