.ef-style-surface[style*="--ef-ui-width-percent:"]{width:var(--ef-ui-width-percent)}
.ef-style-surface[style*="--ef-ui-min-height:"]{min-height:var(--ef-ui-min-height)}
.ef-style-surface[style*="--ef-ui-margin:"]{margin-block:var(--ef-ui-margin)}
.ef-style-surface[style*="--ef-ui-padding:"]{padding:var(--ef-ui-padding)}
.ef-style-surface[style*="--ef-ui-gap:"]{gap:var(--ef-ui-gap)}
.ef-style-surface[style*="--ef-ui-outline:"]{border-color:var(--ef-ui-outline)}
.ef-style-surface[style*="--ef-ui-opacity:"]{opacity:var(--ef-ui-opacity)}
.ef-style-surface[style*="--ef-ui-text-color:"]{color:var(--ef-ui-text-color)}
.ef-style-surface[style*="--ef-ui-surface:"]{background-color:var(--ef-ui-surface)}
.ef-style-surface[style*="--ef-ui-radius:"]{border-radius:var(--ef-ui-radius)}
.ef-style-surface[style*="--ef-ui-font-family:"]{font-family:var(--ef-ui-font-family)}
.ef-style-surface[style*="--ef-ui-font-size:"]{font-size:var(--ef-ui-font-size)}
.ef-style-surface[style*="--ef-ui-font-weight:"]{font-weight:var(--ef-ui-font-weight)}
.ef-style-surface[style*="--ef-ui-line-height:"]{line-height:var(--ef-ui-line-height)}
.ef-style-surface[style*="--ef-ui-letter-spacing:"]{letter-spacing:var(--ef-ui-letter-spacing)}
.ef-style-surface[style*="--ef-ui-align:"]{text-align:var(--ef-ui-align)}

.ef-style-surface[style*="--ef-ui-transition:"]{transition:all var(--ef-ui-transition) var(--ef-ui-easing,ease)}
.ef-style-surface[style*="--ef-ui-shadow:"]{box-shadow:0 2px var(--ef-ui-shadow) #0003}
.ef-style-surface[style*="--ef-ui-icon-color:"] :is(.bi,.rifa-titulos-resumo-trofeu,h1>span){color:var(--ef-ui-icon-color)}
.ef-style-surface[style*="--ef-ui-icon-size:"] :is(.bi,.rifa-titulos-resumo-trofeu,h1>span){font-size:var(--ef-ui-icon-size)}
.ef-style-surface[style*="--ef-ui-icon-size:"] :is(.ef-reference-icon,[data-ef-preview-symbol]){font-size:var(--ef-ui-icon-size);width:1em;height:1em}
.ef-admin-sample{display:flex;align-items:center;flex-wrap:wrap;background-color:#fff;color:#111;padding:10px;margin:8px 0;gap:6px;border:1px solid #ddd}
.ef-style-surface[style*="--ef-ui-height:"]{height:var(--ef-ui-height)}
.ef-style-surface[style*="--ef-ui-margin-inline:"]{margin-inline:var(--ef-ui-margin-inline)}
.ef-style-surface[style*="--ef-ui-border-width:"]{border-width:var(--ef-ui-border-width)}
.ef-style-surface[style*="--ef-ui-border-style:"]{border-style:var(--ef-ui-border-style)}

.ef-style-surface[style*="--ef-ui-gradient-start:"][style*="--ef-ui-gradient-end:"]{
    background-image:linear-gradient(var(--ef-ui-gradient-angle,105deg),var(--ef-ui-gradient-start),var(--ef-ui-gradient-end))
}
.ef-style-surface[data-ef-target][style*="--ef-ui-surface:"]{background-color:var(--ef-ui-surface)}
.ef-style-surface[data-ef-target][style*="--ef-ui-text-color:"]{color:var(--ef-ui-text-color)}
.ef-style-surface[data-ef-target][style*="--ef-ui-font-size:"]{font-size:var(--ef-ui-font-size)}
.ef-style-surface[data-ef-target][style*="--ef-ui-font-weight:"]{font-weight:var(--ef-ui-font-weight)}
.ef-preview-layout{display:grid;gap:8px;width:100%;margin-block:10px}
.ef-preview-layout [data-ef-target]{max-width:100%}
.ef-preview-layout .ef-preview-track{height:9px;background:#c4c9cb;border-radius:10px}
.ef-preview-layout .ef-preview-track span{display:block;width:60%;height:100%;background:#e74f49;border-radius:inherit}
.ef-preview-layout .ef-preview-control{width:100%;padding:8px;border:1px solid #bbb;border-radius:8px}

.ef-preview-layout [hidden]{display:none!important}
.ef-preview-pix-copy{display:flex;align-items:center;gap:8px}
.ef-preview-pix-copy>*{flex:1}
.ef-preview-pix details summary span{display:inline-flex}
.ef-preview-upsell{background:#e4e4e4;padding:12px;border-radius:12px}
.ef-preview-upsell .ef-offer header{background:linear-gradient(90deg,var(--ef-offer-start,#f44761),var(--ef-offer-end,#b51648));color:#fff}
.ef-preview-footer .rodape-selo{border-radius:10px}

.ef-preview-checkout-body{display:grid;gap:8px;padding:12px;background:#fff}
.ef-preview-phone-row{display:flex;align-items:stretch;gap:6px}
.ef-preview-phone-row>b{display:grid;place-items:center;padding:5px;border:1px solid #ccd3db;border-radius:7px;background:#f3f4f6}
.ef-preview-readonly-field{display:block;margin-top:4px;padding:8px;min-height:32px;border:1px solid #ccd3db;border-radius:7px;color:#465463}
.ef-preview-settings{grid-column:1/-1;border-top:1px solid #e4e7ea;padding-top:5px;font-size:12px}
.ef-preview-settings-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:6px;padding:8px 2px}
.ef-preview-settings-list>span,.ef-preview-color-setting{display:flex;align-items:center;gap:6px;overflow-wrap:anywhere;padding:5px;border-radius:6px;background:#f7f8fa}
.ef-preview-settings-list>span>span{min-width:0}
.ef-preview-color-setting>i{width:26px;height:18px;flex:none;border:1px solid #999;border-radius:4px}

/* Account styles use the same variables as Checkout, including on native fields. */
.ef-customer.ef-checkout .ef-style-surface[style*="--ef-ui-surface:"] { background-color: var(--ef-ui-surface); }
.ef-customer.ef-checkout .ef-style-surface[style*="--ef-ui-padding:"] { padding: var(--ef-ui-padding); }
.ef-customer.ef-checkout .ef-style-surface[style*="--ef-ui-margin:"] { margin-block: var(--ef-ui-margin); }
.ef-customer.ef-checkout .ef-style-surface[style*="--ef-ui-outline:"] { border-color: var(--ef-ui-outline); }
.ef-customer.ef-checkout .ef-style-surface[style*="--ef-ui-border-width:"] { border-width: var(--ef-ui-border-width); }
.ef-customer.ef-checkout .ef-style-surface[style*="--ef-ui-border-style:"] { border-style: var(--ef-ui-border-style); }
.ef-customer.ef-checkout .ef-style-surface[style*="--ef-ui-radius:"] { border-radius: var(--ef-ui-radius); }
.ef-customer.ef-checkout .ef-style-surface[style*="--ef-ui-width-percent:"] { width: var(--ef-ui-width-percent); }
.ef-customer.ef-checkout .ef-style-surface[style*="--ef-ui-height:"] { height: var(--ef-ui-height); }
.ef-customer.ef-checkout .ef-style-surface[style*="--ef-ui-min-height:"] { min-height: var(--ef-ui-min-height); }
.ef-customer.ef-checkout .ef-style-surface[style*="--ef-ui-font-size:"] { font-size: var(--ef-ui-font-size); }
.ef-customer.ef-checkout .ef-style-surface[style*="--ef-ui-font-weight:"] { font-weight: var(--ef-ui-font-weight); }
.ef-customer.ef-checkout .ef-style-surface[style*="--ef-ui-text-color:"] {
    color: var(--ef-ui-text-color);
    -webkit-text-fill-color: var(--ef-ui-text-color);
}
.ef-customer.ef-checkout .ef-checkout-header h3 { font: inherit; }
.ef-customer.ef-checkout .ef-checkout-header {
    font-size: var(--ef-ui-font-size, 22px);
    font-weight: var(--ef-ui-font-weight, 650);
    line-height: var(--ef-ui-line-height, 1.15);
}
.ef-customer.ef-checkout .modal-payment-content[style*="--ef-ui-shadow:"] { box-shadow: 0 2px var(--ef-ui-shadow) #0003; }
.ef-customer.ef-checkout .modal-payment-content {
    box-shadow: -1px 10px 17px -11px #00000036;
    transition: transform var(--ef-slide, 320ms) var(--ef-ui-easing, ease);
}
@media (prefers-reduced-motion: reduce) {
    .ef-customer.ef-checkout .modal-payment-content { transition: none; }
}
