body .cdl-portal{max-width:620px;margin:30px auto;padding:22px;border:1px solid #e1e8f3;border-radius:20px;background:#fff;color:#17314e;font:16px/1.5 system-ui,sans-serif;box-shadow:0 15px 45px rgba(30,70,120,.07)}.cdl-portal *{box-sizing:border-box}.cdl-portal-head{text-align:center}.cdl-portal-head h1{font-size:28px;line-height:1.2;margin:8px 0}.cdl-portal-head p{color:#61748b}.cdl-portal-symbol{width:52px;height:52px;border-radius:17px;background:#e7f0fe;color:#1266c5;display:grid;place-items:center;font-size:30px;margin:auto}.cdl-portal-tabs{display:flex;background:#f2f6fb;padding:5px;border-radius:12px;gap:5px;margin:24px 0}.cdl-portal-tabs a{flex:1;text-align:center;padding:10px;border-radius:9px;text-decoration:none;color:#375776;font-weight:700}.cdl-portal-tabs a.active{background:#1062c6;color:#fff}.cdl-portal-card{padding:18px;background:#f7f9fc;border-radius:14px;margin:15px 0;border:1px solid #e4eaf2}.cdl-portal label{display:block;margin:12px 0;font-size:13px;font-weight:700}.cdl-portal input:not([type=checkbox]):not([type=hidden]){width:100%;max-width:100%;margin-top:5px;min-height:44px;padding:10px 12px;border:1px solid #ccd8e6;border-radius:9px;background:#fff;font:inherit}.cdl-portal button,.cdl-portal input[type=submit]{background:#0b63ce!important;color:white!important;border:0;border-radius:10px;min-height:44px;padding:11px 20px;font:700 14px system-ui;cursor:pointer}.cdl-portal .cdl-note{color:#65778b;font-size:12px}.cdl-alert{padding:14px 16px;border:1px solid #9fd9b4;background:#edfff3;color:#14562c;border-radius:10px;margin:15px 0}.cdl-alert.is-error{background:#fff4f2;border-color:#efb5a8;color:#932816}.cdl-honeypot{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}.cdl-portal-card h3{margin:0}.cdl-portal-card h3 small{font-weight:400;color:#60738a}/* Portal do lojista 1.5: isolamento visual do tema e painel responsivo */
body .cdl-portal .cdl-portal-welcome,body .cdl-portal .cdl-card-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
body .cdl-portal .cdl-portal-welcome{margin:22px 0 6px}body .cdl-portal .cdl-portal-welcome h2{margin:0;font-size:22px}body .cdl-portal .cdl-card-head h3{font-size:21px;margin:0 0 7px}
body .cdl-portal .cdl-status{display:inline-block;border-radius:40px;padding:4px 10px;font:700 12px system-ui,sans-serif;background:#fff1d7;color:#845500}body .cdl-portal .cdl-status.is-published{background:#dff8e8;color:#126335}
body .cdl-portal .cdl-card-open{background:#0b63ce;color:#fff!important;padding:9px 13px;border-radius:9px;text-decoration:none;font-weight:700;font-size:13px}
body .cdl-portal .cdl-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:20px 0}body .cdl-portal .cdl-kpis>div{background:#fff;padding:14px 9px;text-align:center;border:1px solid #e1e9f3;border-radius:12px}body .cdl-portal .cdl-kpis strong{display:block;color:#102b4d;font-size:23px;line-height:1.2}body .cdl-portal .cdl-kpis span{display:block;margin-top:6px;font-size:11px;color:#5c6d80}
body .cdl-portal details{margin:12px 0;border:1px solid #dde7f2;border-radius:11px;background:#fff;overflow:hidden}body .cdl-portal details>summary{padding:13px 15px;cursor:pointer;font-weight:700;color:#17314e}body .cdl-portal details[open]>summary{border-bottom:1px solid #e1e9f3;background:#f9fbfe}body .cdl-portal .cdl-click-list{padding:8px 16px}body .cdl-portal .cdl-click-list>div{display:flex;justify-content:space-between;border-bottom:1px solid #ecf1f7;padding:8px 0}body .cdl-portal .cdl-click-details .cdl-note{padding:0 16px}body .cdl-portal .cdl-edit-details form{padding:15px}body .cdl-portal .cdl-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}
@media(max-width:540px){body .cdl-portal{padding:16px;margin:15px 10px}body .cdl-portal .cdl-form-grid{grid-template-columns:1fr}body .cdl-portal .cdl-kpis{gap:5px}body .cdl-portal .cdl-kpis strong{font-size:18px}body .cdl-portal .cdl-kpis span{font-size:10px}}

/* v1.7: isolamento da área do lojista contra estilos globais do tema */
body .cdl-portal{width:min(100% - 28px,760px)!important;max-width:760px!important;margin:28px auto!important;padding:28px!important;background:#fff!important;border:1px solid #e1e8f3!important;border-radius:22px!important;box-shadow:0 18px 48px rgba(20,50,90,.08)!important;font:normal 15px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;color:#17314e!important}
body .cdl-portal h1,body .cdl-portal h2,body .cdl-portal h3{color:#102b4c!important;line-height:1.22!important;text-transform:none!important;letter-spacing:normal!important}
body .cdl-portal .cdl-portal-head{margin:0 0 24px!important;text-align:center!important}
body .cdl-portal .cdl-portal-head h1{font-size:30px!important;margin:12px 0 8px!important}
body .cdl-portal .cdl-portal-head p{margin:0 auto!important;max-width:480px;color:#61748b!important}
body .cdl-portal .cdl-portal-symbol{margin:0 auto!important}
body .cdl-portal .cdl-portal-card{padding:22px!important;background:#f6f9fd!important;border:1px solid #e2eaf4!important;border-radius:16px!important;margin:16px 0!important}
body .cdl-portal .cdl-portal-welcome{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:12px!important}
body .cdl-portal .cdl-card-head{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:12px!important}
body .cdl-portal .cdl-card-head h3{margin:0 0 8px!important}
body .cdl-portal .cdl-kpis{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;margin:20px 0!important}
body .cdl-portal .cdl-kpis>div{display:flex!important;flex-direction:column!important;gap:5px!important;padding:18px 8px!important;text-align:center!important;background:#fff!important;border:1px solid #dce6f2!important;border-radius:13px!important}
body .cdl-portal .cdl-kpis strong{display:block!important;font-size:26px!important;line-height:1.15!important;color:#102b4c!important}
body .cdl-portal .cdl-kpis span{display:block!important;font-size:12px!important;color:#62768c!important}
body .cdl-portal details{display:block!important;margin:10px 0!important;border:1px solid #dce6f2!important;border-radius:12px!important;background:#fff!important;overflow:hidden!important}
body .cdl-portal details>summary{display:list-item!important;padding:14px 17px!important;font-weight:700!important;color:#17314e!important;cursor:pointer!important}
body .cdl-portal .cdl-click-list{padding:8px 16px!important}
body .cdl-portal a:not(.cdl-card-open){color:#0a5fbe!important;text-decoration:none!important}
body .cdl-portal a:hover{text-decoration:underline!important}
@media(max-width:600px){body .cdl-portal{width:calc(100% - 20px)!important;margin:12px auto!important;padding:16px!important}body .cdl-portal .cdl-portal-card{padding:15px!important}body .cdl-portal .cdl-kpis{gap:6px!important}body .cdl-portal .cdl-kpis strong{font-size:20px!important}body .cdl-portal .cdl-kpis span{font-size:10px!important}}

/* v1.8 Portal de largura ampliada sem painel aninhado */
body .cdl-portal{width:min(100% - 24px,1050px)!important;max-width:1050px!important;box-shadow:none!important;border:none!important;background:transparent!important;padding:16px!important}
body .cdl-portal .cdl-portal-head{text-align:left!important;margin-bottom:15px!important}
body .cdl-portal .cdl-portal-head h1{font-size:27px!important}
body .cdl-portal .cdl-portal-head p{margin-left:0!important;max-width:none!important}
body .cdl-portal .cdl-portal-symbol{display:none!important}
body .cdl-portal .cdl-portal-card{background:#fff!important;max-width:none!important}
body .cdl-portal .cdl-owner-tabs{display:flex;gap:7px;overflow-x:auto;margin-top:18px;border-bottom:1px solid #dce6f2;padding-bottom:8px}
body .cdl-portal .cdl-owner-tabs button{flex:none;background:#edf3fa!important;color:#264360!important;border:0!important;border-radius:8px!important;padding:12px 17px!important;cursor:pointer}
body .cdl-portal .cdl-owner-tabs button.is-active{background:#1262cf!important;color:white!important}
body .cdl-portal .cdl-owner-pane{display:none;padding:18px 4px}
body .cdl-portal .cdl-owner-pane.is-active{display:block}
body .cdl-portal .cdl-owner-pane h4{font-size:18px;margin:0 0 16px}
body .cdl-portal .cdl-owner-form input[type=text],body .cdl-portal .cdl-owner-form input:not([type]){width:100%;min-width:0;box-sizing:border-box}
body .cdl-portal .cdl-owner-form input[type=color]{height:40px;width:65px;padding:3px}
body .cdl-portal .cdl-owner-image{min-width:0;padding:12px;border:1px solid #dde7f2;border-radius:12px}
body .cdl-portal .cdl-img-preview{height:95px;max-width:230px;margin:10px 0;display:flex;align-items:center;justify-content:center;background:#f0f4f9;border-radius:9px;color:#708198;font-size:12px;overflow:hidden}
body .cdl-portal .cdl-img-preview img{max-height:100%;max-width:100%;object-fit:contain}
body .cdl-portal .cdl-owner-button{display:grid;grid-template-columns:24px minmax(95px,1fr) minmax(140px,1.3fr) 65px auto auto;align-items:center;gap:9px;padding:12px;border:1px solid #e1e8f1;background:#fff;border-radius:10px;margin:8px 0}
body .cdl-portal .cdl-owner-button.is-dragging{opacity:.45}
body .cdl-portal .cdl-owner-handle{cursor:grab;color:#62758b}
body .cdl-portal .cdl-owner-button label{display:flex;align-items:center;gap:4px;font-size:12px!important}
body .cdl-portal .cdl-owner-save{display:flex;align-items:center;gap:15px;padding-top:15px;border-top:1px solid #dce6f2}
body .cdl-portal .cdl-owner-save span{font-size:12px;color:#64758a}
@media(max-width:740px){body .cdl-portal .cdl-owner-button{grid-template-columns:22px 1fr 1fr;gap:8px}body .cdl-portal .cdl-owner-button input[type=text]{grid-column:2/4}body .cdl-portal .cdl-owner-tabs button{padding:10px!important}}

.cdl-pix-portal-warning{background:#fff8e6;color:#664500;border:1px solid #f3d58a;border-radius:10px;padding:12px 14px;line-height:1.55}
