
.esfl-auth-wrap,
.esfl-box {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
    margin-bottom: 24px;
}

.esfl-auth-head,
.esfl-page-head {
    margin-bottom: 20px;
}

.esfl-auth-head h2,
.esfl-page-head h2,
.esfl-box h2 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.2;
}

.esfl-auth-head p,
.esfl-page-head p,
.esfl-box>p {
    margin: 0;
    color: #64748b;
}

.esfl-auth-grid,
.esfl-grid-2,
.esfl-stats-grid,
.esfl-voucher-grid,
.esfl-summary-grid {
    display: grid;
    gap: 18px;
}

.esfl-auth-grid,
.esfl-grid-2,
.esfl-summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.esfl-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin: 18px 0 22px;
}

.esfl-voucher-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-top: 18px;
}

.esfl-auth-box,
.esfl-panel,
.esfl-stat-card,
.esfl-voucher-card,
.esfl-summary-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.esfl-auth-box h3,
.esfl-panel h3,
.esfl-voucher-card h3,
.esfl-summary-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 20px;
}
            .esfl-guest-popup-reminder__icon {
                display: inline-block;
                animation: esfl-reminder-icon-shake 1.9s ease-in-out infinite;
                transform-origin: center;
                will-change: transform;
            }

            @keyframes esfl-reminder-icon-shake {
                0%, 100% { transform: translateX(0) rotate(0deg); }
                15% { transform: translateX(-2px) rotate(-1.2deg); }
                30% { transform: translateX(2px) rotate(1.2deg); }
                45% { transform: translateX(-2px) rotate(-1deg); }
                60% { transform: translateX(2px) rotate(1deg); }
                75% { transform: translateX(-1px) rotate(-0.6deg); }
                90% { transform: translateX(1px) rotate(0.6deg); }
            }
.esfl-stat-card strong {
    display: block;
    font-size: 30px;
    line-height: 1.1;
    color: #0f172a;
}

.esfl-stat-card span,
.esfl-summary-card p,
.esfl-voucher-card p,
.esfl-muted {
    color: #64748b;
}

.esfl-points-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0f172a;
    color: #fff;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 700;
    margin-top: 10px;
}

.esfl-voucher-card {
    position: relative;
    overflow: hidden;
}

.esfl-voucher-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, #0ea5e9, #8b5cf6);
}

.esfl-voucher-card.is-disabled {
    opacity: 0.78;
}

.esfl-voucher-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.esfl-price-tag,
.esfl-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-weight: 700;
}

.esfl-price-tag {
    background: #eff6ff;
    color: #1d4ed8;
    padding: 8px 12px;
    white-space: nowrap;
}

.esfl-chip {
    background: #ecfeff;
    color: #0f766e;
    padding: 6px 10px;
    font-size: 13px;
}

.esfl-chip.is-muted {
    background: #f1f5f9;
    color: #475569;
}

.esfl-chip.is-danger {
    background: #fef2f2;
    color: #b91c1c;
}

.esfl-voucher-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0;
}

.esfl-voucher-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.esfl-inline-code,
.esfl-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
    background: #0f172a;
    color: #fff;
    border-radius: 12px;
}

.esfl-inline-code {
    padding: 3px 8px;
    font-size: 13px;
}

.esfl-code {
    display: inline-block;
    padding: 8px 12px;
    font-size: 14px;
}

.esfl-table-wrap {
    overflow-x: auto;
}

.esfl-table-wrap table {
    min-width: 640px;
}

.esfl-table-wrap .shop_table th {
    background: #f8fafc;
}

.esfl-empty {
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    padding: 18px;
    text-align: center;
    color: #64748b;
    background: #f8fafc;
}

.esfl-form .form-row label {
    font-weight: 600;
}

.esfl-form input[type="text"],
.esfl-form input[type="email"],
.esfl-form input[type="password"],
.esfl-form textarea,
.esfl-form select {
    width: 100%;
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    padding: 10px 12px;
    background: #fff;
}

.esfl-redeem-form .button,
.esfl-auth-box .button,
.esfl-form .button {
    min-height: 42px;
    border-radius: 999px;
    padding: 0 18px;
}

.esfl-redeem-form .button.is-loading {
    opacity: 0.8;
    pointer-events: none;
}

@media (max-width: 767px) {
    .esfl-auth-wrap,
    .esfl-box {
        padding: 18px;
        border-radius: 16px;
    }

    .esfl-voucher-top,
    .esfl-voucher-foot {
        flex-direction: column;
        align-items: flex-start;
    }

    .esfl-table-wrap table {
        min-width: 560px;
    }

    .esfl-guest-popup {
        padding: 10px;
    }

    .esfl-guest-popup-reminder {
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        max-width: calc(100vw - 20px);
    }

    .esfl-guest-popup-reminder__card {
        width: 74px;
        padding: 8px;
        gap: 0;
        justify-content: center;
        min-height: 74px;
    }

    .esfl-guest-popup-reminder__icon-wrap {
        width: 52px;
        height: 52px;
    }

    .esfl-guest-popup-reminder__text,
    .esfl-guest-popup-reminder__title,
    .esfl-guest-popup-reminder__desc,
    .esfl-guest-popup-reminder__cta,
    .esfl-guest-popup-reminder__close,
    .esfl-guest-popup-reminder__close--inline {
        display: none;
    }

/*     .esfl-guest-popup-reminder__btn {
        width: 74px;
    } */

    .esfl-guest-popup-trigger__icon-placeholder {
        font-size: 28px;
    }

    .esfl-guest-popup__dialog {
        width: 100%;
        margin: 0 auto;
        border-radius: 22px;
        max-height: calc(100vh - 20px);
        overflow: auto;
    }
    .esfl-guest-popup__content {
        padding: 16px 14px 18px;
        gap: 10px;
		padding: 20px !important;
    }

    .esfl-guest-popup__hero {
        margin-bottom: 0;
    }

    .esfl-guest-popup__title-row {
        gap: 8px;
        margin-bottom: 8px;
        align-items: center;
    }

   	h3#esfl-guest-popup-title {
    font-size: 24px;
	}	

    .esfl-guest-popup__title-image {
        top: -15px !important;
        right: 25px !important;
        width: clamp(100px, 8vw, 146px) !important;
    }
    .esfl-guest-popup__subtitle {
        font-size: 14px;
        line-height: 1.45;
    }

    .esfl-guest-popup__description {
        margin-bottom: 0;
        font-size: 13px;
        line-height: 1.45;
    }

    .esfl-guest-popup__field input {
        min-height: 44px;
        font-size: 14px;
    }

    .esfl-guest-popup__submit {
        min-height: 46px;
        font-size: 15px;
    }
    span.esfl-guest-popup-reminder__icon-wrap {
        width: 80px;
        height: 80px;
    }
	span.esfl-guest-popup-reminder__card {
		width: auto !important;
		background: none !important;
		box-shadow: none;
		border: none !important;
	}
	.esfl-guest-popup__grid {
		display: flex;
		flex-direction: column-reverse;
	}
	.esfl-guest-popup__media {
		display: none;
	}
	
	
div#esfl-guest-popup-reminder {
        right: -19px !important;
    }
	}


.esfl-divider {
    position: relative;
    text-align: center;
    margin-bottom: 16px;
}

.esfl-divider:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

.esfl-divider span {
    position: relative;
    display: inline-block;
    padding: 0 12px;
    background: #fff;
    color: #6b7280;
    font-size: 13px;
}

.esfl-social-buttons {
    display: flex;
    gap: 12px;
}

.esfl-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #d0d5dd;
    transition: all .2s ease;
}

.esfl-social-btn:hover {
    transform: translateY(-1px);
        color: #000;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

.esfl-social-btn--google {
    background: #f0910e;
    color: #ffffff;
}

.esfl-social-btn--facebook {
    background: #1877f2;
    border-color: #1877f2;
    color: #fff;
}

/* Header account: ten + so diem */
.header-account-title .esfl-header-account-wrap,
.account-link .esfl-header-account-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.25;
    text-align: left;
}

.esfl-header-account-name {
    font-weight: inherit;
}

span.show-password-input {
    line-height: 2 !important;
}

.esfl-header-account-points {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

/* Sidebar tai khoan: diem duoi ten */
.account-user .esfl-account-user-points {
    display: block;
    width: 100%;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    color: #d96b3b;
}

.account-user.circle span.esfl-account-user-points {
    display: none;
}

.esfl-social-phone-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.esfl-guest-popup-reminder {
    position: fixed;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999998;
    display: none;
    align-items: center;
    gap: 10px;
}

.esfl-guest-popup-reminder__btn {
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.esfl-guest-popup-reminder__card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(15, 23, 42, 0.08);
    text-align: center;
}
.esfl-guest-popup-reminder__title {
    font-size: 24px;
    font-weight: bold;
    line-height: 1.15;
    color: #0b6b5c;
    text-transform: uppercase;
}
.esfl-guest-popup-reminder__icon-wrap {
    width: 160px;
    height: 160px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #e8fff4;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.75);
    overflow: hidden;
}

.esfl-guest-popup-reminder__icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.esfl-guest-popup-reminder__icon-placeholder {
    font-size: 36px;
}

.esfl-guest-popup-reminder__desc {
    font-size: 18px;
    line-height: 1.35;
    color: #475569;
    text-transform: uppercase;
    font-weight: 700;
}

.esfl-guest-popup-reminder__cta {
    min-width: 100%;
    border-radius: 999px;
    background: linear-gradient(180deg, #f59e0b 0%, #ef8f05 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    text-align: center;
    padding: 8px 12px;
    text-transform: uppercase;
}

.esfl-guest-popup-reminder__close {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 999px;
    /* background: #f1f5f9; */
    color: #334155;
    cursor: pointer;
    flex: 0 0 auto;
    font-size: 24px;
}

.esfl-guest-popup-reminder__close--inline {
    position: absolute;
    top: 0px;
    right: 0px;
    z-index: 2;
}

.esfl-guest-popup-trigger__icon-placeholder {
    font-size: 44px;
}

.esfl-social-phone-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.esfl-social-phone-modal__dialog {
    position: relative;
    z-index: 2;
    width: min(100%, 520px);
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    box-sizing: border-box;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.esfl-social-phone-modal__head {
    padding-right: 40px;
}

.esfl-social-phone-modal__head h3 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.3;
}

.esfl-social-phone-modal__head p {
    margin: 0 0 18px;
    color: #666;
}

.esfl-social-phone-form .form-row {
    margin-bottom: 14px;
}

.esfl-social-phone-form input[type="text"] {
    width: 100%;
    min-height: 44px;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    padding: 10px 12px;
    box-sizing: border-box;
    background: #fff;
}

.esfl-social-phone-form .button.alt {
    width: 100%;
    min-height: 46px;
    border-radius: 10px;
    margin: 0;
}

.esfl-social-popup-notice {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.esfl-social-popup-notice--error {
    background: #fdeaea;
    color: #a12622;
    border: 1px solid #f3b7b5;
}

.esfl-social-popup-notice--success {
    background: #eaf7ea;
    color: #1f6b2a;
    border: 1px solid #b7dfbd;
}

.esfl-social-popup-notice--notice {
    background: #eef4ff;
    color: #244a8f;
    border: 1px solid #bfd0f3;
}

.esfl-social-phone-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #555;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.esfl-social-phone-modal__close:hover,
.esfl-social-phone-modal__close:focus {
    background: #f3f4f6;
    color: #111;
}

@media (max-width: 767px) {
    .esfl-social-phone-modal {
        align-items: flex-end;
        padding: 12px;
    }

    .esfl-social-phone-modal__dialog {
        max-height: calc(100dvh - 24px);
        border-radius: 12px;
        padding: 20px 16px 16px;
    }

    .esfl-social-phone-modal__head {
        padding-right: 44px;
    }

    .esfl-social-phone-modal__head h3 {
        font-size: 21px;
        line-height: 1.25;
    }

    .esfl-social-phone-modal__head p {
        margin-bottom: 16px;
        font-size: 14px;
        line-height: 1.45;
    }

    .esfl-social-phone-modal__close {
        top: 8px;
        right: 8px;
        width: 40px;
        height: 40px;
        font-size: 30px;
    }

    .esfl-social-popup-notice {
        padding: 10px 12px;
        font-size: 13px;
    }

    .esfl-social-phone-form .form-row {
        margin-bottom: 0px;
        gap: 0;
    }
}

.esfl-guest-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
}

.esfl-guest-popup[hidden] {
    display: none !important;
}

.esfl-guest-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(4px);
}

.esfl-guest-popup__dialog {
    position: relative;
    z-index: 1;
    width: min(94vw, 1040px);
    margin: 6vh auto;
    background: #fff;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
}

.esfl-guest-popup__close {
    position: absolute;
    right: 14px;
    top: -14px;
    padding: 0;
    margin: 0;
    color: #0f172a;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    border-radius: 999px;
}
.esfl-guest-popup__grid {
	display: flex;
}
.esfl-guest-popup__media {
    background: linear-gradient(180deg, #f8fafc, #e2e8f0);
    position: relative;
	    width: 55%;
}

.esfl-guest-popup__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.esfl-guest-popup__media-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, #dbeafe, #c7d2fe 45%, #e2e8f0 100%);
    color: #0f172a;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.esfl-guest-popup__media.is-empty {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.esfl-guest-popup__content {
    display: flex;
    flex-direction: column;
    padding: 35px;
    justify-content: center;
}
.esfl-guest-popup__hero {
    margin-bottom: 8px;
}

.esfl-guest-popup__title-row {
	    width: 80%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.esfl-guest-popup__title-row h3 {
    margin: 0;
    flex: 1;
    line-height: 1.2;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    font-size: 28px;
    color: #00594C;
}

.esfl-guest-popup__title-image {
    position: absolute;
    right: 20px;
    top: -25px;
    width: clamp(72px, 8vw, 170px);
}
.esfl-guest-popup__subtitle {
    margin: 0 0 14px;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 500;
    color: #111827;
}

.esfl-guest-popup__description {
    margin: 0 0 14px;
    color: #475569;
}

.esfl-guest-popup__benefits {
    display: none;
}

.esfl-guest-popup__form {
    display: grid;
}

.esfl-guest-popup__field input {
    width: 100% !important;
    min-height: 54px;
    border: 0 !important;
    border-radius: 12px !important;
    background: #edf7e8 !important;
    padding: 14px 16px !important;
    font-size: 15px !important;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.02) !important;
}
.esfl-guest-popup__field input::placeholder {
    color: #6b7280;
}

.esfl-guest-popup__field-error {
    margin-top: 6px;
    color: #dc2626;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
}

.esfl-guest-popup__submit {
    min-height: 54px;
	    margin: 0;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #f59e0b 0%, #ef8f05 100%);
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(245, 158, 11, 0.26);
}

.esfl-guest-popup__login-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 1px solid #ef8f05;
    border-radius: 999px;
    background: #fff;
    color: #d97706;
    font-weight: 700;
    text-decoration: none;
        margin-top: 10px;
}

.esfl-guest-popup__login-link:hover,
.esfl-guest-popup__login-link:focus {
    background: #fff7ed;
    color: #b45309;
}

.esfl-media-picker {
    display: flex;
    gap: 10px;
    align-items: center;
}

.esfl-media-picker input[type="text"] {
    flex: 1;
}

body.esfl-popup-open,
html.esfl-popup-open {
    overflow: hidden;
}

.page-title-inner.flex-row.container.text-center,
li.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--dashboard,
li.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--downloads,
.account-user.circle em.user-id {
    display: none;
}

ul#my-account-nav li.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--customer-logout {
    display: none;
}