.esf-signup-form-wrapper {
	max-width: 100%;
}

.esf-signup-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.esf-signup-fields {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.esf-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.esf-field-label {
	font-weight: 600;
	font-size: 14px;
}

.esf-required {
	color: #d63638;
}

.esf-field-input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
	box-sizing: border-box;
}

.esf-field-input:focus {
	border-color: #2271b1;
	outline: none;
	box-shadow: 0 0 0 1px #2271b1;
}

.esf-field-input::placeholder {
	color: #c5c5c5;
	opacity: 1;
}

.esf-field-input::-webkit-input-placeholder {
	color: #c5c5c5;
}

.esf-field-input::-moz-placeholder {
	color: #c5c5c5;
	opacity: 1;
}

.esf-checkbox-label,
.esf-radio-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: normal;
}

.esf-radio-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.esf-submit-button {
	align-self: flex-start;
	padding: 12px 24px;
	border: none;
	border-radius: 4px;
	background: #2271b1;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
}

.esf-submit-button:hover:not(:disabled) {
	background: #135e96;
}

.esf-submit-button:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.esf-form-messages {
	font-size: 14px;
	min-height: 1.2em;
}

.esf-message-success {
	color: #008a20;
}

.esf-message-error {
	color: #d63638;
}

.esf-placeholder-hint {
	margin: 0 0 4px;
	font-size: 12px;
	color: #b8b8b8;
	font-weight: 400;
}

.esf-placeholder-hint code {
	background: transparent;
	padding: 0;
	color: #b8b8b8;
	font-size: 12px;
}

.elementor-editor-active .esf-placeholder-hint,
.elementor-editor-active .esf-placeholder-hint code {
	color: #b8b8b8;
}

.esf-korean-address {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.esf-address-row {
	display: flex;
	gap: 8px;
	align-items: stretch;
}

.esf-address-search-row .esf-address-postcode {
	flex: 1;
}

.esf-address-search-button {
	flex-shrink: 0;
	padding: 10px 16px;
	border: 1px solid #2271b1;
	border-radius: 4px;
	background: #fff;
	color: #2271b1;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}

.esf-address-search-button:hover {
	background: #f0f6fc;
}

.esf-address-postcode,
.esf-address-line1 {
	background: #f9f9f9;
}

.esf-wc-account-signup-fields {
	margin: 1.5em 0 0;
	padding-top: 1.5em;
	border-top: 1px solid #e2e2e2;
}

.esf-wc-account-signup-fields h3 {
	margin: 0 0 0.5em;
	font-size: 1.25em;
}

.esf-wc-account-signup-desc {
	margin: 0 0 1em;
	color: #666;
	font-size: 0.95em;
}

.esf-wc-account-signup-fields .esf-korean-address .esf-field-input,
.esf-wc-account-signup-fields .esf-korean-address .esf-address-search-button {
	width: 100%;
	box-sizing: border-box;
}

.esf-wc-account-signup-fields .esf-address-search-row {
	flex-wrap: wrap;
}

.esf-my-account-wc-notice {
	margin-bottom: 1em;
	padding: 12px 16px;
	border: 1px solid #c3d9f0;
	border-radius: 4px;
	background: #f0f6fc;
}

.esf-my-account-wc-notice p {
	margin: 0 0 8px;
}

.esf-my-account-wc-notice p:last-child {
	margin-bottom: 0;
}

.esf-page-links {
	text-align: center;
}

.esf-login-links {
	display: flex;
	gap: 16px;
	margin-top: 12px;
}

.esf-login-logged-in,
.esf-my-account-guest {
	padding: 16px;
	background: #f6f7f7;
	border-radius: 4px;
}

.esf-account-table {
	width: 100%;
	border-collapse: collapse;
}

.esf-account-table th,
.esf-account-table td {
	padding: 10px 12px;
	border-bottom: 1px solid #e0e0e0;
	text-align: left;
}

.esf-account-table th {
	width: 30%;
	background: #f6f7f7;
}

.esf-button-link {
	display: inline-block;
	margin-top: 8px;
}

.esf-pages-table {
	max-width: 900px;
	margin-bottom: 8px;
}

.esf-point-price small {
	color: #50575e;
}

.esf-checkout-purchase-mode h3 {
	margin-top: 0;
}

.esf-purchase-mode-option label {
	display: block;
}

.esf-purchase-mode-option .description {
	display: block;
	font-weight: normal;
	color: #50575e;
	margin-top: 4px;
}

.esf-point-conversion-wrap {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #dcdcde;
}

.esf-point-purchase-option {
	margin: 12px 0 16px;
	padding: 12px;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	background: #f6f7f7;
}

.esf-point-purchase-notices {
	margin-top: 10px;
}

.esf-point-notice {
	margin: 6px 0;
	font-size: 13px;
}

.esf-point-notice-warning {
	color: #996800;
}

.esf-point-conversion-wrap {
	margin-bottom: 16px;
	padding: 12px;
}

.esf-points-balance-banner {
	margin-bottom: 16px;
}

.esf-payout-wrap .form-row {
	margin-bottom: 14px;
}

.esf-payout-wrap label {
	display: inline;
	font-weight: 600;
	margin-bottom: 0;
}

.esf-field-label-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 4px;
}

.esf-field-label-row > label {
	display: inline;
	margin-bottom: 0;
}

.esf-field-label-row--inline > label {
	font-weight: normal;
}

.esf-payout-wrap input[type="text"],
.esf-payout-wrap input[type="email"],
.esf-payout-wrap input[type="tel"],
.esf-payout-wrap input[type="number"],
.esf-payout-wrap input[type="date"],
.esf-payout-wrap input[type="password"],
.esf-payout-wrap textarea {
	width: 100%;
	max-width: 520px;
}

.esf-cert-row label {
	font-weight: normal;
}

.esf-payout-history {
	margin-top: 24px;
}

.esf-w8ben-history {
	margin-top: 24px;
}

.esf-w8ben-status {
	margin-bottom: 16px;
}

.esf-w8ben-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.esf-optional {
	color: #646970;
	font-weight: normal;
	font-size: 0.92em;
}

.esf-payout-prefill-notice {
	margin-bottom: 16px;
}

.esf-payout-address-note {
	font-size: 13px;
	color: #50575e;
	margin-bottom: 8px;
}

.esf-w8ben-address-preview {
	margin-top: 10px;
	font-size: 13px;
	padding: 10px 12px;
	background: #f6f7f7;
	border-radius: 4px;
}

.esf-w8ben-address-preview span {
	display: block;
	margin-top: 4px;
	color: #1d2327;
	word-break: break-word;
}

.esf-mailing-same-row {
	margin-bottom: 10px;
}

.esf-mailing-same-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	cursor: pointer;
}

.esf-mailing-address-fields {
	margin-top: 8px;
}

.esf-mailing-same-preview {
	margin-top: 8px;
}

.esf-w8ben-korean-notice {
	font-size: 13px;
	color: #50575e;
	padding: 10px 12px;
	background: #f0f6fc;
	border-radius: 4px;
	border: 1px solid #c3d9f0;
}

.esf-rrn-fields {
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: 320px;
}

.esf-rrn-front {
	flex: 0 0 96px;
	text-align: center;
	letter-spacing: 0.05em;
}

.esf-rrn-back {
	flex: 1 1 auto;
	text-align: center;
	letter-spacing: 0.05em;
}

.esf-rrn-separator {
	font-size: 18px;
	font-weight: 600;
	color: #50575e;
	line-height: 1;
}

.esf-field-help {
	position: relative;
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	vertical-align: middle;
}

.esf-field-help-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #787c82;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	cursor: help;
}

.esf-field-help:hover .esf-field-help-icon,
.esf-field-help:focus-within .esf-field-help-icon {
	background: #50575e;
	outline: 2px solid #2271b1;
	outline-offset: 1px;
}

.esf-payout-wrap,
.esf-payout-wrap .form-row,
.esf-payout-wrap .esf-field-label-row,
.esf-payout-wrap .esf-field-help {
	overflow: visible;
}

.esf-field-help-floating {
	display: none;
	position: fixed;
	z-index: 999999;
	max-width: min(320px, calc(100vw - 24px));
	padding: 10px 12px;
	background: #1d2327;
	color: #fff;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.5;
	border-radius: 4px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
	pointer-events: none;
	white-space: normal;
	text-align: left;
	word-break: keep-all;
	overflow-wrap: break-word;
}

.esf-field-help-floating:not([hidden]) {
	display: block;
}

.esf-cert-row .esf-field-help {
	vertical-align: top;
}

.esf-w8ben-history-note {
	font-size: 13px;
	color: #50575e;
	margin: 4px 0 12px;
}

.esf-payout-history .button.button-small,
.esf-w8ben-history .button.button-small {
	white-space: nowrap;
	padding: 4px 12px;
	font-size: 13px;
	line-height: 1.5;
}

.esf-w8ben-delete-link.button {
	color: #b32d2e;
	border-color: #d9a8a8;
	background: #fff;
	font-weight: 600;
}

.esf-w8ben-delete-link.button:hover {
	color: #fff;
	background: #b32d2e;
	border-color: #b32d2e;
}

.esf-muted {
	color: #8c8f94;
}

.esf-w8ben-current-badge {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	color: #2271b1;
}

/* Compact (header) login layout */
.esf-login-form--compact {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 8px;
}

.esf-login-form--compact .esf-field {
	margin: 0;
	flex: 1 1 140px;
	min-width: 120px;
}

.esf-login-form--compact .esf-field-label {
	display: none;
}

.esf-login-form--compact .esf-remember-me {
	display: none;
}

.esf-login-form--compact .esf-form-messages {
	flex-basis: 100%;
	order: 3;
}

.esf-login-form--compact .esf-login-button {
	flex: 0 0 auto;
	white-space: nowrap;
}

.esf-login-form-wrapper--compact .esf-login-links {
	display: flex;
	gap: 12px;
	font-size: 12px;
	margin-top: 4px;
}

/* Points balance widget */
.esf-points-balance-widget {
	display: inline-flex;
	flex-direction: column;
	gap: 6px;
	padding: 12px 16px;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	background: #fafafa;
}

.esf-points-balance-widget__main {
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.esf-points-balance-widget__label {
	font-size: 0.9em;
	color: #50575e;
}

.esf-points-balance-widget__value {
	font-size: 1.4em;
	font-weight: 700;
	color: #1d2327;
}

.esf-points-balance-widget__available {
	font-size: 0.85em;
	color: #646970;
}

.esf-points-balance-widget__note {
	font-size: 0.85em;
	color: #b26a00;
}

.esf-points-balance-widget__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 4px;
}

/* Points history ledger */
.esf-points-summary {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 12px;
}

.esf-points-summary__card {
	flex: 1 1 140px;
	padding: 12px 16px;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	background: #fafafa;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.esf-points-summary__label {
	font-size: 0.85em;
	color: #50575e;
}

.esf-points-summary__value {
	font-size: 1.3em;
	font-weight: 700;
	color: #1d2327;
}

.esf-points-ledger {
	margin-top: 8px;
	width: 100%;
}

.esf-points-ledger__amount {
	font-weight: 600;
	white-space: nowrap;
}

.esf-points-plus {
	color: #1a7f37;
}

.esf-points-minus {
	color: #b32d2e;
}

/* Password strength meter + confirm match */
.esf-password-strength {
	margin: 6px 0 2px;
}

.esf-password-strength-track {
	height: 6px;
	border-radius: 4px;
	background: #e2e2e2;
	overflow: hidden;
}

.esf-password-strength-fill {
	display: block;
	height: 100%;
	width: 0;
	background: #d63638;
	border-radius: 4px;
	transition: width 0.2s ease, background-color 0.2s ease;
}

.esf-password-strength-text {
	display: inline-block;
	margin-top: 4px;
	font-size: 12px;
	font-weight: 600;
}

.esf-password-hint {
	margin: 4px 0 0;
	font-size: 12px;
	color: #646970;
}

.esf-password-match {
	margin: 4px 0 0;
	font-size: 12px;
	font-weight: 600;
}

.esf-username-check {
	margin: 4px 0 0;
	font-size: 12px;
	font-weight: 600;
}

/* Checkout purchase-mode heading (builder-overridable default) */
.esf-checkout-purchase-mode__title {
	font-size: 18px;
	line-height: 1.4;
	margin: 0 0 10px;
}

/* Point payout live calculation */
.esf-payout-calc {
	margin: 12px 0 20px;
	padding: 16px 18px;
	background: #f6f9fc;
	border: 1px solid #d7e3ef;
	border-radius: 8px;
}

.esf-payout-calc__title {
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 10px;
	color: #1d2327;
}

.esf-payout-calc__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding: 5px 0;
	font-size: 14px;
	border-bottom: 1px dashed #e2e8f0;
}

.esf-payout-calc__row:last-of-type {
	border-bottom: none;
}

.esf-payout-calc__label {
	color: #50575e;
}

.esf-payout-calc__value {
	font-variant-numeric: tabular-nums;
	text-align: right;
}

.esf-payout-calc__final {
	margin-top: 6px;
	padding-top: 10px;
	border-top: 2px solid #2271b1;
	border-bottom: none;
	font-size: 16px;
}

.esf-payout-calc__final .esf-payout-calc__value strong {
	color: #135e96;
	font-size: 18px;
}

.esf-payout-calc__meta {
	margin-top: 10px;
	font-size: 12px;
	color: #787c82;
}

.esf-payout-calc__note {
	margin: 0;
	color: #b32d2e;
	font-size: 13px;
}

/* Header account bar (shortcode) */
.esf-account-bar {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	font-size: 14px;
	line-height: 1.4;
}

.esf-account-bar--guest {
	gap: 8px;
}

.esf-account-bar__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 7px 16px;
	border-radius: 6px;
	font-weight: 600;
	text-decoration: none;
	line-height: 1;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.esf-account-bar__btn--login {
	color: #2271b1;
	background: transparent;
	border: 1px solid #2271b1;
}

.esf-account-bar__btn--login:hover {
	background: #2271b1;
	color: #fff;
}

.esf-account-bar__btn--signup {
	color: #fff;
	background: #2271b1;
	border: 1px solid #2271b1;
}

.esf-account-bar__btn--signup:hover {
	background: #135e96;
	border-color: #135e96;
	color: #fff;
}

.esf-account-bar__user {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
	color: inherit;
	font-weight: 700;
}

.esf-account-bar__user:hover .esf-account-bar__name {
	text-decoration: underline;
}

.esf-account-bar__icon {
	display: block;
	flex: 0 0 auto;
}

.esf-account-bar__message {
	color: inherit;
}

.esf-account-bar__logout {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 6px;
	color: inherit;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.esf-account-bar__logout:hover {
	background: rgba(214, 54, 56, 0.12);
	color: #d63638;
}
