.aev-otp-container {
    padding: 20px 0;
    text-align: center;
}

.aev-otp-title {
    font-size: 20px;
    font-weight: 500;
    margin: 0 0 12px;
    color: var(--minimog-color-heading, #000);
}

.aev-email-display-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 15px;
    color: #000;
}

.aev-email-text {
    font-weight: 500;
    word-break: break-all;
}

.aev-change-email-link {
    font-size: 13px;
    color: var(--minimog-color-link, #c9a84c);
    text-decoration: underline;
    font-weight: 500;
    white-space: nowrap;
    transition: opacity .15s;
}

.aev-change-email-link:hover {
    opacity: .7;
    text-decoration: underline;
}

.aev-email-edit-row {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.aev-email-edit-input {
    flex: 1;
    height: 42px;
    padding: 0 12px;
    font-size: 14px;
    font-family: var(--minimog-typography-body-font-family, 'Jost', sans-serif);
    border: 1.5px solid var(--minimog-color-form-border, #d2d2d2);
    border-radius: 6px;
    outline: none;
    background: #fff;
    color: #000;
    box-sizing: border-box;
}

.aev-email-edit-input:focus {
    border-color: #000;
}

.aev-email-edit-btn {
    padding: 0 14px;
    height: 42px;
    font-size: 13px;
    font-weight: 500;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .15s;
}

.aev-email-edit-btn:hover {
    opacity: .85;
}

.aev-email-edit-btn:disabled {
    opacity: .5;
}

.aev-email-cancel-btn {
    padding: 0 14px;
    height: 42px;
    font-size: 13px;
    font-weight: 500;
    background: transparent;
    color: #666;
    border: 1.5px solid var(--minimog-color-form-border, #d2d2d2);
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: all .15s;
}

.aev-email-cancel-btn:hover {
    border-color: #000;
    color: #000;
}

.aev-otp-desc {
    font-size: 14px;
    color: var(--minimog-color-text, #666);
    margin: 0 0 28px;
    line-height: 1.6;
}

.aev-otp-desc strong {
    color: var(--minimog-color-heading, #000);
    font-weight: 500;
}

.aev-code-inputs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 0 0 20px;
}

.aev-code-input {
    width: 52px;
    height: 56px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    font-family: var(--minimog-typography-body-font-family, 'Jost', sans-serif);
    border: 2px solid var(--minimog-color-form-border, #d2d2d2);
    border-radius: 8px;
    background: var(--minimog-color-form-background, #fff);
    color: var(--minimog-color-form-text, #000);
    transition: all 0.2s ease;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.aev-code-input:focus {
    border-color: var(--minimog-color-primary, #DA3F3F);
    box-shadow: 0 0 0 3px rgba(218, 63, 63, 0.1);
}

.aev-code-input.filled {
    border-color: var(--minimog-color-primary, #DA3F3F);
    background: rgba(218, 63, 63, 0.03);
}

.aev-code-input.error {
    border-color: #d9534f;
    animation: aev-shake 0.4s ease;
}

.aev-code-input.success {
    border-color: #6cbd7e;
    background: rgba(108, 189, 126, 0.05);
}

@keyframes aev-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.aev-resend-wrap {
    margin: 0 0 20px;
    font-size: 14px;
    color: var(--minimog-color-text, #666);
}

.aev-timer {
    display: inline-block;
}

.aev-countdown {
    font-weight: 500;
    color: var(--minimog-color-heading, #000);
}

.aev-resend-link {
    color: var(--minimog-color-primary, #DA3F3F);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.aev-resend-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.aev-response-messages {
    display: none;
    margin: 0 0 16px;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

.aev-response-messages.error {
    display: block;
    background: rgba(217, 83, 79, 0.08);
    color: #d9534f;
    border: 1px solid rgba(217, 83, 79, 0.2);
}

.aev-response-messages.success {
    display: block;
    background: rgba(108, 189, 126, 0.08);
    color: #4a9d5f;
    border: 1px solid rgba(108, 189, 126, 0.2);
}

.aev-verify-btn {
    width: 100%;
    height: 48px;
    line-height: 46px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: var(--minimog-button-rounded, 5px);
    transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.aev-verify-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.aev-verify-btn.loading {
    pointer-events: none;
    opacity: .8;
}

.aev-verify-btn.loading::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 8px;
    background: #fff;
    border-radius: 50%;
    vertical-align: middle;
    animation: aev-dot-pulse .8s ease-in-out infinite;
    box-shadow: 12px 0 0 #fff, 24px 0 0 #fff;
}

@keyframes aev-dot-pulse {
    0%, 100% { opacity: .4; }
    50% { opacity: 1; }
}

.customer_login button.loading,
#customer_login button.loading,
.customer_login input[type="submit"].loading,
#customer_login input[type="submit"].loading {
    pointer-events: none;
    opacity: .85;
    transition: opacity .2s ease;
}

.customer_login button.loading::after,
#customer_login button.loading::after,
.customer_login input[type="submit"].loading::after,
#customer_login input[type="submit"].loading::after {
    content: '...';
    display: inline;
    margin-left: 2px;
    font-weight: 600;
    letter-spacing: 1px;
    color: inherit;
    position: static;
    width: auto;
    height: auto;
    border: none;
    border-radius: 0;
    background: none;
    animation: aev-dot-fade 1.2s ease-in-out infinite;
}

@keyframes aev-dot-fade {
    0%, 100% { opacity: .3; }
    50% { opacity: 1; }
}

@media (max-width: 543px) {
    .aev-code-inputs {
        gap: 8px;
    }

    .aev-code-input {
        width: 46px;
        height: 50px;
        font-size: 22px;
    }

    .aev-otp-title {
        font-size: 18px;
    }

    .aev-otp-desc {
        font-size: 13px;
    }
}
