/* Scoped validation feedback: form shape is not proof of identity. */
.woocommerce form.checkout .form-row.woocommerce-validated:not(.woocommerce-invalid) input.input-text,
.woocommerce form.checkout .form-row.woocommerce-validated:not(.woocommerce-invalid) select { border-color: var(--ast-border-color, #d1d5db) !important; }
.woocommerce form.checkout input[data-onx-phone-state="checking"],
.woocommerce form.checkout input[data-onx-phone-state="valid"],
.woocommerce form.checkout input[data-onx-phone-state="unavailable"],
.wc-block-checkout input[data-onx-phone-state="checking"],
.wc-block-checkout input[data-onx-phone-state="valid"],
.wc-block-checkout input[data-onx-phone-state="unavailable"] { border-color: var(--ast-border-color, #d1d5db) !important; }
.woocommerce form.checkout input[data-onx-phone-state="invalid"],
.wc-block-checkout input[data-onx-phone-state="invalid"] { border-color: #b42318 !important; box-shadow: 0 0 0 1px #b42318 !important; }
.ordernexa-phone-message { display: block; margin-top: 6px; color: #475467; font: 400 14px/1.5 system-ui, sans-serif; }
input[data-onx-phone-state="invalid"] ~ .ordernexa-phone-message { color: #b42318; }
/* Shopper popup. Scoped and reset so store themes do not restyle it. */
#ordernexa-checkout-dialog { box-sizing: border-box; width: min(420px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); margin: auto; padding: 0; border: 0; background: transparent; color: #101828; overflow: visible; font: 400 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Bengali", sans-serif; }
#ordernexa-checkout-dialog *, #ordernexa-checkout-dialog *::before { box-sizing: border-box; }
#ordernexa-checkout-dialog::backdrop { background: rgba(16, 24, 40, .6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
#ordernexa-checkout-dialog[open] .onx-dlg-card { animation: onx-dlg-pop .22s cubic-bezier(.2, .9, .3, 1.2) both; }
#ordernexa-checkout-dialog .onx-dlg-card { position: relative; padding: 32px 28px 24px; border-radius: 16px; background: #fff; text-align: center; box-shadow: 0 24px 48px -12px rgba(16, 24, 40, .3); }
#ordernexa-checkout-dialog .onx-dlg-x { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 34px; height: 34px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent !important; color: #98a2b3 !important; font: 400 24px/1 system-ui, sans-serif; cursor: pointer; box-shadow: none; }
#ordernexa-checkout-dialog .onx-dlg-x:hover { background: #f2f4f7 !important; color: #344054 !important; }
#ordernexa-checkout-dialog .onx-dlg-icon { --onx-c: #dc6803; --onx-bg: #fffaeb; --onx-ring: #fef0c7; display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--onx-bg); box-shadow: 0 0 0 8px var(--onx-ring); color: var(--onx-c); }
#ordernexa-checkout-dialog .onx-dlg-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
#ordernexa-checkout-dialog.onx-dlg--error .onx-dlg-icon, #ordernexa-checkout-dialog.onx-dlg--phone .onx-dlg-icon { --onx-c: #d92d20; --onx-bg: #fef3f2; --onx-ring: #fee4e2; }
#ordernexa-checkout-dialog.onx-dlg--pending .onx-dlg-icon { --onx-c: #1570ef; --onx-bg: #eff8ff; --onx-ring: #d1e9ff; animation: onx-dlg-pulse 1.8s ease-in-out infinite; }
#ordernexa-checkout-dialog .onx-dlg-title { margin: 0 0 8px; padding: 0; border: 0; color: #101828; font-family: inherit; font-weight: 700; font-size: 20px; line-height: 1.35; letter-spacing: -.01em; text-transform: none; }
#ordernexa-checkout-dialog .onx-dlg-message { margin: 0 0 24px; color: #475467; font: inherit; overflow-wrap: anywhere; }
#ordernexa-checkout-dialog .onx-dlg-actions { display: grid; gap: 10px; }
#ordernexa-checkout-dialog .onx-dlg-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; margin: 0; padding: 12px 18px; border: 1px solid transparent; border-radius: 10px; font-family: inherit; font-weight: 600; font-size: 15px; line-height: 1.3; letter-spacing: normal; text-align: center; text-decoration: none !important; text-transform: none; cursor: pointer; box-shadow: none; transition: background-color .15s, border-color .15s, transform .1s; }
#ordernexa-checkout-dialog .onx-dlg-btn:active { transform: scale(.98); }
#ordernexa-checkout-dialog .onx-dlg-btn--primary { background: #101828 !important; color: #fff !important; }
#ordernexa-checkout-dialog .onx-dlg-btn--primary:hover { background: #1d2939 !important; }
#ordernexa-checkout-dialog .onx-dlg-btn--wa { background: #25d366 !important; color: #fff !important; }
#ordernexa-checkout-dialog .onx-dlg-btn--wa:hover { background: #1fb457 !important; }
#ordernexa-checkout-dialog .onx-dlg-btn--ghost { border-color: #d0d5dd; background: #fff !important; color: #344054 !important; }
#ordernexa-checkout-dialog .onx-dlg-btn--ghost:hover { background: #f9fafb !important; }
#ordernexa-checkout-dialog .onx-dlg-btn-icon { display: inline-flex; }
#ordernexa-checkout-dialog .onx-dlg-btn-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#ordernexa-checkout-dialog .onx-dlg-btn-meta { font-weight: 400; opacity: .75; }
#ordernexa-checkout-dialog :focus-visible { outline: 3px solid #84caff; outline-offset: 2px; }
@keyframes onx-dlg-pop { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes onx-dlg-pulse { 50% { box-shadow: 0 0 0 12px var(--onx-ring); } }
@media (max-width: 520px) {
	#ordernexa-checkout-dialog { width: 100vw; max-width: 100vw; margin: auto 0 0; }
	#ordernexa-checkout-dialog .onx-dlg-card { padding: 28px 20px calc(20px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; }
	#ordernexa-checkout-dialog[open] .onx-dlg-card { animation-name: onx-dlg-sheet; }
}
@keyframes onx-dlg-sheet { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { #ordernexa-checkout-dialog .onx-dlg-card, #ordernexa-checkout-dialog .onx-dlg-icon { animation: none !important; } }

/* Thank-you page: order received, waiting for confirmation. */
.onx-verify-card { display: flex; align-items: flex-start; gap: 16px; margin: 0 0 28px; padding: 20px 22px; border: 1px solid #fedf89; border-radius: 14px; background: linear-gradient(180deg, #fffcf5, #fffaeb); color: #101828; font: 400 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Bengali", sans-serif; }
.onx-verify-card__icon { flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fef0c7; color: #dc6803; }
.onx-verify-card__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.onx-verify-card__title { margin: 0 0 4px; color: #101828; font-weight: 700; font-size: 17px; line-height: 1.35; }
.onx-verify-card__text { margin: 0; color: #475467; }
.onx-verify-card__call { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 8px 14px; border-radius: 8px; background: #101828; color: #fff !important; font-weight: 600; text-decoration: none !important; }
