.rz-card{box-sizing:border-box;width:min(var(--rz-width,420px),100%);padding:32px;margin:24px auto;background:var(--rz-bg,#fff);border:1px solid #e4e9e7;border-radius:var(--rz-radius,16px);box-shadow:0 12px 40px #14392c08;color:#192d27;font-family:inherit;text-align:right;line-height:1.8}.rz-card *{box-sizing:border-box}.rz-card [hidden]{display:none!important}.rz-card .rz-mark{width:52px;height:52px;display:grid;place-items:center;margin-bottom:18px;background:#f0f5f3;border-radius:16px;color:var(--rz-primary,#17634d)}.rz-mark svg{width:27px;height:27px}.rz-card h2{font-size:24px;line-height:1.6;margin:0 0 6px;color:inherit}.rz-subtitle{font-size:13px;color:#718078;margin:0 0 26px}.rz-field{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:13px;font-weight:500;margin-bottom:18px}.rz-card input:not([type=checkbox]),.rz-card select,.rz-card textarea{display:block;width:100%;min-height:49px;margin:0;border:1px solid #cdd8d2;border-radius:10px;padding:10px 13px;background:#fff;font:inherit;color:#223c30;box-shadow:none}.rz-card input:focus,.rz-card select:focus,.rz-card textarea:focus{outline:2px solid var(--rz-primary,#17634d);outline-offset:2px}.rz-card input[type=checkbox]{width:18px;height:18px;accent-color:var(--rz-primary,#17634d)}.rz-card .rz-code{font-size:23px;text-align:center;letter-spacing:9px}.rz-card .rz-button{width:100%;min-height:49px;border:0;border-radius:10px;padding:11px 16px;background:var(--rz-primary,#17634d);color:white;font:inherit;font-size:14px;font-weight:600;cursor:pointer;text-transform:none}.rz-card button:disabled{opacity:.55;cursor:wait}.rz-help{font-size:11px;color:#738077;margin:13px 0 0}.rz-actions{display:flex;justify-content:space-between;gap:12px;margin-top:16px}.rz-card .rz-text-button{border:0;padding:0;background:none;color:var(--rz-primary,#17634d);font:inherit;font-size:12px;cursor:pointer}.rz-card .rz-destination{font-size:13px;margin-bottom:18px;overflow-wrap:anywhere}.rz-message{font-size:12px;min-height:0;margin:14px 0 0;overflow-wrap:anywhere}.rz-message.is-error{color:#a72f38}.rz-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.rz-grid>.rz-full{grid-column:1/-1}.rz-trap{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(100%)}.rz-checkout{margin:18px 0;border:1px solid #e4e9e7;padding:14px;border-radius:12px}.rz-checkout>summary{cursor:pointer;font-size:14px}.rz-card[aria-busy=true] .rz-button{opacity:.6}@media(max-width:480px){.rz-card{padding:23px;margin:18px auto}.rz-card h2{font-size:21px}.rz-grid{grid-template-columns:1fr}.rz-grid>.rz-half{grid-column:1/-1}}

.rz-card.rz-connected{width:100%;max-width:var(--rz-width,420px);margin:0 auto;padding:clamp(16px,5%,28px);box-shadow:none}.rz-connected .rz-actions{flex-wrap:wrap}.rz-connected .rz-code{letter-spacing:6px}
/* Shared design tokens for account pages, popups and the admin preview. */
.rz-card{padding:var(--rz-padding,32px);min-height:var(--rz-min-height,0);font-size:var(--rz-font-size,14px);color:var(--rz-text,#192d27);border-width:var(--rz-border-width,1px);box-shadow:var(--rz-shadow,0 12px 40px #14392c08);text-align:var(--rz-align,right)}
.rz-card .rz-logo{display:block;width:auto;height:auto;max-width:min(100%,var(--rz-logo-width,96px));max-height:var(--rz-logo-height,72px);object-fit:contain;margin:0 0 20px;margin-inline-start:var(--rz-logo-margin,0);margin-inline-end:auto}
.rz-card .rz-mark{margin-inline-start:var(--rz-logo-margin,0);margin-inline-end:auto}
.rz-card .rz-field{text-align:right;font-size:var(--rz-font-size,14px)}
.rz-card .rz-subtitle,.rz-card .rz-help{color:var(--rz-muted,#718078)}
.rz-card input:not([type=checkbox]),.rz-card select,.rz-card textarea{min-height:var(--rz-input-height,49px);border-color:var(--rz-input-border,#cdd8d2);background:var(--rz-input-bg,#fff);color:var(--rz-text,#192d27);border-radius:var(--rz-control-radius,10px)}
.rz-card .rz-button{min-height:var(--rz-input-height,49px);border-radius:var(--rz-button-radius,10px);color:var(--rz-button-text,#fff);font-size:var(--rz-font-size,14px)}
.rz-card.rz-connected{padding:min(var(--rz-padding,32px),28px);box-shadow:var(--rz-shadow,none)}
@media(max-width:480px){.rz-card{padding:min(var(--rz-padding,32px),23px)}}

/* Compact dimensions affect connected login cards only; content height stays flexible. */
.rz-popup-host{box-sizing:border-box;width:var(--rz-popup-width,320px)!important;min-width:0!important;max-width:calc(100vw - 24px)!important}
.rz-card.rz-connected.rz-popup-sized{width:min(var(--rz-popup-width,320px),100%);max-width:min(var(--rz-popup-width,320px),calc(100vw - 24px));padding:var(--rz-popup-padding,16px);min-height:var(--rz-popup-min-height,0);--rz-font-size:var(--rz-popup-font-size,13px);--rz-input-height:var(--rz-popup-input-height,42px);--rz-logo-width:var(--rz-popup-logo-width,72px);--rz-logo-height:var(--rz-popup-logo-height,54px)}
.rz-popup-sized h2{font-size:var(--rz-popup-title-size,20px)}
.rz-popup-sized .rz-field,.rz-popup-sized .rz-logo,.rz-popup-sized .rz-mark{margin-bottom:var(--rz-popup-gap,10px)}
.rz-popup-sized .rz-subtitle{margin-bottom:calc(var(--rz-popup-gap,10px) * 1.5)}
.rz-popup-sized .rz-help,.rz-popup-sized .rz-actions,.rz-popup-sized .rz-message{margin-top:var(--rz-popup-gap,10px)}
.rz-popup-sized input:not([type=checkbox]),.rz-popup-sized select,.rz-popup-sized .rz-button{height:var(--rz-popup-input-height,42px);min-height:var(--rz-popup-input-height,42px);padding:4px 8px;line-height:1.1}
.rz-popup-sized .rz-button{font-size:var(--rz-popup-font-size,13px)}
.rz-popup-sized .rz-mark{width:40px;height:40px;border-radius:12px}
.rz-popup-sized .rz-mark svg{width:23px;height:23px}

/* Country picker and phone share one border; native select retains keyboard and touch support. */
.rz-card .rz-phone-control{display:flex;align-items:stretch;min-width:0;min-height:var(--rz-input-height,49px);border:1px solid var(--rz-input-border,#cdd8d2);border-radius:var(--rz-control-radius,10px);background:var(--rz-input-bg,#fff);color:var(--rz-text,#192d27);overflow:hidden}
.rz-phone-control:focus-within{outline:2px solid var(--rz-primary,#17634d);outline-offset:2px}
.rz-card .rz-country-control{position:relative;flex:0 0 auto;border-right:1px solid var(--rz-input-border,#cdd8d2);min-width:85px}
.rz-card .rz-country-display{height:100%;display:flex;align-items:center;justify-content:center;gap:6px;padding:0 8px;font-size:12px;white-space:nowrap;pointer-events:none}
.rz-card .rz-country-display img{display:block;width:24px;height:18px;object-fit:contain;border-radius:2px;margin:0;flex:none}
.rz-card .rz-country-control select{position:absolute;inset:0;width:100%;height:100%;min-height:0;margin:0;padding:0;opacity:0;cursor:pointer;direction:rtl}
.rz-card .rz-phone-control input{flex:1;min-width:0;width:0;min-height:0;border:0;border-radius:0;margin:0;background:transparent;box-shadow:none;outline:0;padding:8px 10px;text-align:left}
.rz-card .rz-phone-control input:focus{outline:0;box-shadow:none}
.rz-card.rz-popup-sized .rz-phone-control{height:var(--rz-popup-input-height,42px);min-height:var(--rz-popup-input-height,42px)}
.rz-card.rz-popup-sized .rz-phone-control input{height:100%;min-height:0;padding:4px 8px}
.rz-card.rz-popup-sized .rz-country-control select{height:100%;min-height:0}
/* Searchable country popup is portaled outside theme overflow/hover containers. */
.rz-card .rz-country-control{min-width:96px}
.rz-card .rz-country-display{gap:8px;padding:0 12px}
.rz-card .rz-country-toggle{position:absolute;inset:0;width:100%;height:100%;min-height:0;border:0;border-radius:0;margin:0;padding:0;background:transparent;color:inherit;cursor:pointer;box-shadow:none}
.rz-card .rz-country-toggle:focus-visible{outline:2px solid var(--rz-primary,#17634d);outline-offset:-3px}
.rz-country-picker-open{visibility:visible!important;opacity:1!important;pointer-events:auto!important}
.rz-country-popover{position:fixed;z-index:2147483000;box-sizing:border-box;display:flex;flex-direction:column;gap:10px;padding:12px;background:var(--rz-input-bg,#fff);color:var(--rz-text,#192d27);border:1px solid var(--rz-input-border,#cdd8d2);border-radius:14px;box-shadow:0 12px 40px #0002;text-align:right;font-size:13px;line-height:1.6;overflow:hidden}
.rz-country-popover *{box-sizing:border-box}.rz-country-popover [hidden]{display:none!important}
.rz-country-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none}
.rz-country-close{width:36px;height:36px;border:0;border-radius:8px;background:transparent;color:inherit;font-size:24px;line-height:1;cursor:pointer;padding:4px}
.rz-country-popover input[type=search]{flex:none;width:100%;height:44px;min-height:44px;padding:10px 14px!important;margin:0;border:1px solid var(--rz-input-border,#cdd8d2);border-radius:9px;background:var(--rz-input-bg,#fff);color:inherit;font:inherit;direction:rtl;text-align:right;outline-offset:2px}
.rz-country-list{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;padding:2px 3px 2px 2px}
.rz-country-popover .rz-country-option{display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;gap:12px;width:100%;min-height:44px;padding:10px 14px!important;margin:0 0 3px;border:0;border-radius:8px;background:transparent;color:inherit;text-align:right;font:inherit;line-height:1.6;cursor:pointer;white-space:normal}
.rz-country-option img{width:24px;height:18px;object-fit:contain;max-width:none;border-radius:2px;margin:0}
.rz-country-name{min-width:0;overflow-wrap:anywhere;padding-inline:2px}
.rz-country-option bdi{font-size:12px;white-space:nowrap}
.rz-country-option.is-active,.rz-country-option:hover{background:#edf4f1}
.rz-country-option[aria-selected=true]{box-shadow:inset 0 0 0 1px var(--rz-primary,#17634d)}
.rz-country-empty{margin:0;padding:14px;text-align:center;flex:none}
.rz-country-popover.is-mobile{border-radius:18px;gap:12px;padding:14px}
.rz-country-popover.is-mobile .rz-country-option{min-height:48px}

.rz-country-popover.is-mobile .rz-country-close{width:44px;height:44px}
@media(max-width:480px){.rz-country-popover input[type=search],.rz-card .rz-phone-control input{font-size:16px}}

/* Protect popup header spacing from theme resets and button styles. */
html body .rz-country-popover{padding:14px!important;box-sizing:border-box!important}
html body .rz-country-popover .rz-country-bar{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;width:100%!important;padding:8px 10px!important;margin:0!important;flex:0 0 auto!important;box-sizing:border-box!important;text-align:right!important}
html body .rz-country-popover .rz-country-bar strong{display:block!important;flex:1 1 auto;min-width:0;padding:0!important;margin:0!important;font-size:14px!important;line-height:1.7!important;color:inherit!important;overflow-wrap:anywhere}
html body .rz-country-popover .rz-country-close{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 36px!important;width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;color:inherit!important;font-size:24px!important;line-height:1!important;box-shadow:none!important}
html body .rz-country-popover .rz-country-close::before,html body .rz-country-popover .rz-country-close::after{content:none!important}
@media(max-width:480px){html body .rz-country-popover .rz-country-bar{padding:6px 8px!important}html body .rz-country-popover .rz-country-close{flex-basis:44px!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important}}

/* Only account dropdowns which actually contain a connected Taban form. */
html body .rz-click-account > .rz-click-panel{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important}
html body .rz-click-account > .rz-click-panel.is-rz-open{display:block!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;max-width:calc(100vw - 24px);max-height:calc(100vh - 120px);overflow-y:auto;overscroll-behavior:contain}
html body .rz-click-panel .rz-panel-close{display:flex!important;align-items:center;justify-content:center;width:36px;height:36px;min-width:36px;min-height:36px;padding:0!important;margin:6px 8px 4px auto!important;border:0;background:transparent;color:inherit;font-size:24px;line-height:1;cursor:pointer}
@media(max-width:480px){html body .rz-click-account > .rz-click-panel.is-rz-open{position:fixed!important;inset:auto 12px 12px 12px!important;transform:none!important;width:auto!important;max-width:none!important;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);margin:0!important;z-index:100001}html body .rz-click-panel .rz-panel-close{width:44px;height:44px}}

/* Compact account header: close control shares the login title row. */
html body .rz-click-account > .rz-click-panel.is-rz-open{padding:16px!important}
html body .rz-click-panel .rz-panel-bar{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;min-height:36px!important;padding:0!important;margin:0 0 12px!important;direction:rtl;flex-wrap:wrap}
html body .rz-click-panel .rz-panel-title-group{display:inline-flex!important;align-items:center!important;gap:10px!important;flex:0 0 auto;direction:rtl}
html body .rz-click-panel .rz-panel-title{margin:0!important;padding:0!important;font-size:16px!important;line-height:1.6!important}
html body .rz-click-panel .rz-panel-bar .rz-panel-close{flex:0 0 36px!important;margin:0!important;padding:0!important;border-radius:8px;color:inherit;box-shadow:none!important}
html body .rz-click-panel .rz-panel-bar .rz-panel-close:hover{background:#00000008}
html body .rz-click-panel .rz-panel-bar .rz-panel-close:focus-visible{outline:2px solid var(--rz-primary,#17634d);outline-offset:2px}
@media(max-width:480px){html body .rz-click-account > .rz-click-panel.is-rz-open{padding:12px!important}html body .rz-click-panel .rz-panel-bar{min-height:44px!important;gap:8px!important}html body .rz-click-panel .rz-panel-bar .rz-panel-close{flex-basis:44px!important}}

/* Keep the phone hint subtle and OTP digits readable in every form size. */
.rz-card input[name="identity"][type="tel"]::placeholder{color:var(--rz-phone-placeholder,#c5cbd2);opacity:1;font-weight:400}
.rz-card input.rz-code{font-size:clamp(24px,6vw,30px);font-weight:700;line-height:1.3;text-align:center;letter-spacing:clamp(2px,1vw,6px);font-variant-numeric:tabular-nums}

/* Independent phone-entry typography; email and OTP inputs keep their styles. */
.rz-card input[name="identity"][type="tel"]{font-size:var(--rz-phone-font-size,inherit)}
@media(max-width:767px){.rz-card input[name="identity"][type="tel"]{font-size:var(--rz-phone-mobile-font-size,var(--rz-phone-font-size,inherit))}}
@media(max-width:480px){.rz-card .rz-phone-control input[name="identity"][type="tel"]{font-size:var(--rz-phone-mobile-font-size,var(--rz-phone-font-size,16px))}}
/* Preview device controls work independently of the admin browser width. */
#rz-live-preview[data-rz-preview-mode="mobile"] input[name="identity"][type="tel"]{font-size:var(--rz-phone-mobile-font-size,var(--rz-phone-font-size,inherit))}
#rz-live-preview[data-rz-preview-mode="mobile"] .rz-phone-control input[name="identity"][type="tel"]{font-size:var(--rz-phone-mobile-font-size,var(--rz-phone-font-size,16px))}
#rz-live-preview[data-rz-preview-mode="desktop"] input[name="identity"][type="tel"],#rz-live-preview[data-rz-preview-mode="popup"] input[name="identity"][type="tel"]{font-size:var(--rz-phone-font-size,inherit)}
