/* Evermed SMS — compact phone-login card. */
.evsms { --evsms-accent: var(--ev-primary-ink, #008541); border: 1px solid var(--ev-line, #e4e8e7); border-radius: var(--ev-radius, 10px); padding: 14px 16px; margin: 0 auto 16px; background: var(--ev-surface, #fff); max-width: 440px; box-sizing: border-box; }
.evsms .evsms__title { font-size: 1.05rem; margin: 0 0 2px !important; padding: 0; line-height: 1.3; }
.evsms > :first-child { margin-top: 0 !important; }
.evsms__sub { margin: 0 0 10px; font-size: .85rem; color: var(--ev-muted, #667471); }
.evsms__label { display: block; font-size: .82rem; font-weight: 600; margin: 8px 0 4px; }
.evsms__row { display: flex; gap: 6px; }
.evsms__input { width: 100%; box-sizing: border-box; height: 42px; padding: 0 12px; border: 1px solid var(--ev-line, #d5dbd9); border-radius: 8px; font-size: 1rem; background: #fff; }
.evsms__input:focus { outline: none; border-color: var(--evsms-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--evsms-accent) 18%, transparent); }
.evsms__code { letter-spacing: .35em; font-size: 1.2rem; text-align: center; font-variant-numeric: tabular-nums; }
.evsms__btn { flex: none; height: 42px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--evsms-accent); color: #fff; font-weight: 600; cursor: pointer; white-space: nowrap; }
.evsms__btn:hover { filter: brightness(.95); }
.evsms__btn:disabled { opacity: .6; cursor: wait; }
.evsms__btn--full { width: 100%; margin-top: 10px; }
.evsms__links { display: flex; justify-content: space-between; margin-top: 6px; }
.evsms__link { background: none; border: 0; padding: 4px 0; color: var(--ev-secondary-ink, #056cfc); font-size: .85rem; cursor: pointer; }
.evsms__link:disabled { color: var(--ev-muted, #8a939d); cursor: default; }
.evsms__msg { margin: 8px 0 0; font-size: .88rem; color: #1a7f37; }
.evsms__msg:empty { margin: 0; }
.evsms__msg--bad { color: #b32d2e; }
.evsms__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
/* 1.1: tabs + views */
.evsms__tabs { display: flex; gap: 4px; margin: 0 0 10px; border-bottom: 1px solid var(--ev-line, #e4e8e7); }
.evsms__tab { flex: 1; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 8px 4px; font-weight: 600; font-size: .95rem; color: var(--ev-muted, #667471); cursor: pointer; }
.evsms__tab.is-active { color: var(--evsms-accent); border-bottom-color: var(--evsms-accent); }
.evsms__view { margin: 0; }
.evsms__view[hidden], .evsms [hidden] { display: none !important; }
.evsms__head { margin: 0 0 4px; font-size: .88rem; color: var(--ev-muted, #667471); }
.evsms__note { margin: 8px 0 0; font-size: .8rem; color: var(--ev-muted, #667471); line-height: 1.4; }
.evsms .evsms__label:first-child { margin-top: 0; }

/* 1.1.1: centred on wide screens; WooCommerce notices above it line up with the card */
.woocommerce-account:not(.logged-in) .woocommerce-notices-wrapper { max-width: 440px; margin-inline: auto; }
/* 1.2: account details + verified contacts + popup */
.evsms-account { max-width: 560px; }
.evsms-account__field { margin: 0 0 12px; }
.evsms-account__pw { border: 1px solid var(--ev-line, #e4e8e7); border-radius: var(--ev-radius, 10px); padding: 10px 14px 12px; margin: 14px 0; }
.evsms-account__pw legend { padding: 0 6px; font-weight: 600; font-size: .9rem; }
.evsms-account .evsms__btn { padding: 0 20px; }
.evsms-contact { margin: 0 0 12px; }
.evsms-contact__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 42px; padding: 0 12px; border: 1px solid var(--ev-line, #d5dbd9); border-radius: 8px; background: var(--ev-page, #f6f8f7); }
.evsms-contact__value { font-weight: 600; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.evsms-contact__ok { font-size: .8rem; color: #1a7f37; font-weight: 600; }
.evsms-contact__box { margin-top: 6px; display: grid; gap: 6px; }
.evsms-prompt { border: 0; border-radius: 12px; padding: 16px 16px 10px; width: min(420px, calc(100vw - 24px)); box-shadow: 0 12px 40px rgba(0,0,0,.2); }
.evsms-prompt::backdrop { background: rgba(0,0,0,.45); }
.evsms-prompt__x { position: absolute; top: 6px; right: 8px; border: 0; background: none; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--ev-muted, #667471); }
.evsms-prompt__title { font-size: 1.1rem; margin: 0 0 4px; }
.evsms-prompt__sub { margin: 0 0 10px; font-size: .88rem; color: var(--ev-muted, #667471); }
.evsms-prompt__foot { text-align: right; }
/* 1.2: the accent colour for every Evermed SMS component (not only the login card) */
.evsms-prompt, .evsms-account, .evsms-contact { --evsms-accent: var(--ev-primary-ink, #008541); }
/* "hidden" always wins over the flex/grid rules above */
.evsms-contact [hidden], .evsms-prompt [hidden], .evsms-account [hidden] { display: none !important; }
/* 1.3: not-verified badge, secondary button, popup steps */
.evsms-contact__warn { font-size: .8rem; color: #9a6700; font-weight: 600; }
.evsms__btn--ghost { background: #fff; color: var(--evsms-accent); box-shadow: inset 0 0 0 1px var(--evsms-accent); }
.evsms-contact .evsms__note { margin: 0; }
.evsms-prompt .evsms__btn--full { margin-top: 8px; }
.evsms-prompt__done { margin: 0 0 2px; font-size: 1rem; color: #1a7f37; }
.evsms-prompt__code { margin-top: 8px; }
.evsms-prompt .evsms__msg:empty { display: none; }
/* 1.3: a number/email never breaks in the middle — the badges and links move to the next line instead */
.evsms-contact__row { padding: 6px 12px; row-gap: 2px; column-gap: 10px; }
.evsms-contact__value { flex: 1 0 auto; min-width: 0; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
.evsms-contact__actions { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; white-space: nowrap; }
