/*
 * CVX Agenda Pro — página pública de marcação e página de gestão da marcação (0.20.0).
 * Pensada primeiro para telemóvel; os mesmos valores do painel CVX Serviços (azul CVX, Lexend Deca,
 * botões 6px, campos 8px, cartões 12px).
 */
/* Lexend Deca servida pelo plugin (fonte variável 100–900, SIL OFL 1.1): a página não faz pedidos a terceiros. */
@font-face{font-family:"Lexend Deca";font-style:normal;font-weight:100 900;font-display:swap;src:url(../fonts/lexend-deca-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Lexend Deca";font-style:normal;font-weight:100 900;font-display:swap;src:url(../fonts/lexend-deca-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
.cvxbk{
  --bk-accent:#004aad;--bk-accent-dk:#003a8a;--bk-accent-soft:#eaf3ff;--bk-accent-wash:#f5f9ff;
  --bk-ink:#0b1f3a;--bk-text:#3b4b61;--bk-muted:#5a6a80;--bk-line:#e2e9f2;--bk-line-2:#cfdbe8;--bk-soft:#f5f8fc;
  --bk-green:#0e6b4c;--bk-green-soft:#e9f7f0;--bk-gold:#8a5a00;--bk-gold-soft:#fff5dc;--bk-gold-line:#f3d98e;
  --bk-red:#a5371f;--bk-red-soft:#fff1ee;--bk-red-line:#f6cfc7;
  --bk-font:"Lexend Deca",Lexend,Arial,sans-serif;
  display:block;margin:0;padding:24px 16px 48px;background:var(--bk-soft);
  font-family:var(--bk-font);font-size:14.5px;line-height:1.5;color:var(--bk-text);text-align:left;
  -webkit-font-smoothing:antialiased;
}
/* A página de marcação é um documento próprio (sem o tema): o corpo só tem a marcação. */
body.cvxsp-booking-page{margin:0;padding:0;background:#f5f8fc;-webkit-text-size-adjust:100%}
body.cvxsp-booking-page .cvxbk{min-height:100vh;min-height:100dvh}
.cvxbk *,.cvxbk *::before,.cvxbk *::after{box-sizing:border-box}
.cvxbk :where(h1,h2,h3,p,ol,ul,dl,dd,dt,figure){margin:0;padding:0}
.cvxbk :where(h1,h2,h3,p,span,a,strong,small,label,button,input,select,textarea,dt,dd,li){font-family:var(--bk-font)!important;letter-spacing:0;text-transform:none}
.cvxbk [hidden]{display:none!important}
.cvxbk :where(a,button,input,select,textarea):focus-visible{outline:2px solid var(--bk-accent);outline-offset:2px}
.cvxbk-ico{flex:0 0 auto;display:block}

.cvxbk-shell{position:relative;max-width:640px;margin:0 auto;background:#fff;border:1px solid var(--bk-line);border-radius:16px;box-shadow:0 1px 2px rgba(16,24,40,.04),0 12px 32px -18px rgba(16,40,80,.18)}
.cvxbk-top{display:flex;align-items:center;gap:10px;min-height:56px;padding:0 20px;border-bottom:1px solid var(--bk-line)}
.cvxbk .cvxbk-brand{color:var(--bk-accent)!important;font-size:18px;font-weight:700;letter-spacing:.5px;text-decoration:none!important;line-height:1}
.cvxbk-top__sep{width:1px;height:18px;background:var(--bk-line-2)}
.cvxbk-top__label{color:var(--bk-muted);font-size:13px}

.cvxbk-pro{display:flex;align-items:center;gap:14px;padding:20px 20px 16px}
.cvxbk-avatar{flex:0 0 52px;display:flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:50%;background:var(--bk-accent-soft);color:var(--bk-accent);font-size:17px;font-weight:600;overflow:hidden}
.cvxbk-avatar img{display:block;width:100%;height:100%;object-fit:cover}
.cvxbk-pro__body{display:flex;flex-direction:column;gap:3px;min-width:0}
.cvxbk .cvxbk-pro__name{color:var(--bk-ink)!important;font-size:18px!important;font-weight:600!important;line-height:1.3!important}
.cvxbk .cvxbk-pro__meta{color:var(--bk-muted);font-size:13px}
.cvxbk .cvxbk-link{color:var(--bk-accent)!important;font-size:13px;font-weight:500;text-decoration:none!important}
.cvxbk .cvxbk-link:hover{color:var(--bk-accent-dk)!important;text-decoration:underline!important}

.cvxbk-steps{display:flex;align-items:center;gap:8px;list-style:none;padding:0 20px 16px!important;margin:0!important}
.cvxbk-steps li{display:flex;align-items:center;gap:6px;color:var(--bk-muted);font-size:13px;list-style:none;margin:0;padding:0}
.cvxbk-steps li + li::before{content:"";width:28px;height:1px;background:var(--bk-line-2);margin-right:2px}
.cvxbk-steps li span{display:flex;align-items:center;justify-content:center;width:24px;height:24px;border:1px solid var(--bk-line-2);border-radius:50%;font-size:12px;font-weight:600}
.cvxbk-steps li.is-current{color:var(--bk-ink);font-weight:600}
.cvxbk-steps li.is-current span{border-color:var(--bk-accent);background:var(--bk-accent);color:#fff}
.cvxbk-steps li.is-done span{border-color:var(--bk-green-soft);background:var(--bk-green-soft);color:var(--bk-green)}
@media (min-width:520px){.cvxbk-steps li + li::before{width:64px}}

.cvxbk-step{display:flex;flex-direction:column;gap:12px;padding:4px 20px 20px}
.cvxbk .cvxbk-h2{color:var(--bk-ink)!important;font-size:16px!important;font-weight:600!important;line-height:1.35!important}
.cvxbk .cvxbk-h3{margin-top:8px;color:var(--bk-muted)!important;font-size:13px!important;font-weight:500!important}
.cvxbk-muted{color:var(--bk-muted);font-size:13px}
.cvxbk-foot{padding:4px 20px 20px;color:var(--bk-muted);font-size:12px;text-align:center}

.cvxbk-services{display:flex;flex-direction:column;gap:10px}
.cvxbk .cvxbk-service{display:flex;align-items:center;gap:12px;width:100%;min-height:64px;padding:12px 14px;border:1px solid var(--bk-line);border-radius:12px;background:#fff;color:var(--bk-text);font-size:14.5px;line-height:1.4;text-align:left;text-decoration:none!important;cursor:pointer;transition:border-color .15s ease,background .15s ease;-webkit-appearance:none;appearance:none}
.cvxbk .cvxbk-service:hover{border-color:var(--bk-line-2);background:var(--bk-accent-wash)}
.cvxbk .cvxbk-service[aria-pressed="true"]{border-color:var(--bk-accent);box-shadow:inset 0 0 0 1px var(--bk-accent);background:var(--bk-accent-wash)}
.cvxbk-radio{flex:0 0 20px;width:20px;height:20px;border:1.5px solid var(--bk-line-2);border-radius:50%;background:#fff}
.cvxbk-service[aria-pressed="true"] .cvxbk-radio{border:6px solid var(--bk-accent)}
.cvxbk-service__body{flex:1 1 0;display:flex;flex-direction:column;gap:2px;min-width:0}
.cvxbk-service__name{color:var(--bk-ink);font-size:15px;font-weight:600}
.cvxbk-service__meta,.cvxbk-service__desc{color:var(--bk-muted);font-size:13px}
.cvxbk-service__price{flex:0 0 auto;color:var(--bk-ink);font-size:15px;font-weight:600;white-space:nowrap}
.cvxbk .cvxbk-service--quote{border-style:dashed;border-color:var(--bk-line-2)}
.cvxbk-service__cta{flex:0 0 auto;color:var(--bk-accent);font-size:14px;font-weight:600}
.cvxbk .cvxbk-service__alt{display:inline-block;margin:6px 0 0 14px}

.cvxbk-summary{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:12px;background:var(--bk-soft)}
.cvxbk-summary__body{flex:1 1 0;display:flex;flex-direction:column;gap:2px;min-width:0}
.cvxbk-summary__body strong{color:var(--bk-ink);font-size:14.5px;font-weight:600}
.cvxbk-summary__body span{color:var(--bk-muted);font-size:13px}
.cvxbk .cvxbk-textbtn{min-height:44px;padding:0 4px;border:0;background:none;color:var(--bk-accent);font-size:13px;font-weight:500;cursor:pointer}

.cvxbk-weeknav{display:flex;align-items:center;justify-content:space-between;gap:12px}
.cvxbk-weeknav__btns{display:flex;gap:6px}
.cvxbk .cvxbk-iconbtn{display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:1px solid var(--bk-line-2);border-radius:8px;background:#fff;color:var(--bk-ink);cursor:pointer}
.cvxbk .cvxbk-iconbtn:disabled{border-color:var(--bk-line);color:#a9b6c6;cursor:default}
.cvxbk-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.cvxbk .cvxbk-day{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;height:64px;padding:0;border:1px solid var(--bk-line);border-radius:8px;background:#fff;color:var(--bk-ink);cursor:pointer}
.cvxbk-day small{color:var(--bk-muted);font-size:11px;line-height:1.2}
.cvxbk-day strong{font-size:16px;font-weight:600;line-height:1.2}
.cvxbk .cvxbk-day:disabled{border-color:#eef2f7;background:var(--bk-soft);cursor:default}
.cvxbk .cvxbk-day:disabled small,.cvxbk .cvxbk-day:disabled strong{color:#8b98aa}
.cvxbk .cvxbk-day[aria-pressed="true"]{border-color:var(--bk-accent);background:var(--bk-accent)}
.cvxbk .cvxbk-day[aria-pressed="true"] small,.cvxbk .cvxbk-day[aria-pressed="true"] strong{color:#fff}
.cvxbk-slotgroup{display:flex;flex-direction:column;gap:8px}
.cvxbk-slots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.cvxbk .cvxbk-slot{height:46px;padding:0;border:1px solid var(--bk-line-2);border-radius:8px;background:#fff;color:var(--bk-ink);font-size:15px;font-weight:500;cursor:pointer}
.cvxbk .cvxbk-slot:hover{border-color:var(--bk-accent)}
.cvxbk .cvxbk-slot[aria-pressed="true"]{border-color:var(--bk-accent);background:var(--bk-accent);color:#fff;font-weight:600}
.cvxbk-empty{padding:18px 14px;border:1px dashed var(--bk-line-2);border-radius:12px;color:var(--bk-muted);font-size:14px;text-align:center}
.cvxbk-loading{padding:26px 0;color:var(--bk-muted);font-size:14px;text-align:center}

.cvxbk-form{display:flex;flex-direction:column;gap:16px;margin:0}
.cvxbk-field{display:flex;flex-direction:column;gap:6px}
.cvxbk .cvxbk-field label{margin:0;color:var(--bk-ink);font-size:13px;font-weight:500}
.cvxbk .cvxbk-field label small{color:var(--bk-muted);font-size:13px;font-weight:400}
.cvxbk .cvxbk-input{width:100%;height:48px;margin:0;padding:0 14px;border:1px solid var(--bk-line-2);border-radius:8px;background:#fff;color:var(--bk-ink);font-size:16px;line-height:1.3;box-shadow:none;-webkit-appearance:none;appearance:none}
.cvxbk .cvxbk-input::placeholder{color:#7a889b}
.cvxbk .cvxbk-input:focus{border-color:var(--bk-accent);outline:none;box-shadow:0 0 0 3px rgba(0,74,173,.14)}
.cvxbk .cvxbk-input[aria-invalid="true"]{border-color:var(--bk-red)}
.cvxbk-phone{display:flex;gap:8px}
.cvxbk .cvxbk-phone select.cvxbk-input{flex:0 0 132px;width:132px;padding:0 30px 0 12px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a6a80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;text-overflow:ellipsis}
.cvxbk-phone input{flex:1 1 0;min-width:0}
.cvxbk-check{display:flex;align-items:flex-start;gap:12px;min-height:44px;padding:12px 14px;border:1px solid var(--bk-line);border-radius:8px;color:var(--bk-text);font-size:13px;cursor:pointer}
.cvxbk .cvxbk-check input{flex:0 0 20px;width:20px;height:20px;margin:0;accent-color:var(--bk-accent)}
.cvxbk-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.cvxbk-error{color:var(--bk-red);font-size:13px}
.cvxbk-rules{display:flex;flex-direction:column;gap:4px;margin-top:16px;padding:12px 14px;border-radius:8px;background:var(--bk-soft);color:var(--bk-text);font-size:13px;line-height:1.45}
.cvxbk-rules p{white-space:pre-line}
.cvxbk-shell > .cvxbk-muted{margin:14px 0 0;padding:0 20px}

.cvxbk-bar{position:sticky;bottom:0;z-index:5;display:flex;align-items:center;gap:12px;padding:12px 20px calc(12px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--bk-line);border-radius:0 0 16px 16px;background:#fff}
.cvxbk-bar__body{flex:1 1 0;display:flex;flex-direction:column;gap:2px;min-width:0}
.cvxbk-bar__body strong{color:var(--bk-ink);font-size:14px;font-weight:600}
.cvxbk-bar__body span{color:var(--bk-muted);font-size:13px}
.cvxbk .cvxbk-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 18px;border:1px solid var(--bk-line-2);border-radius:6px;background:#fff;color:var(--bk-ink)!important;font-size:15px;font-weight:500;line-height:1.2;text-decoration:none!important;cursor:pointer;-webkit-appearance:none;appearance:none}
.cvxbk .cvxbk-btn:hover{border-color:var(--bk-accent)}
.cvxbk .cvxbk-btn--primary{border-color:var(--bk-accent);background:var(--bk-accent);color:#fff!important;font-weight:600}
.cvxbk .cvxbk-btn--primary:hover{border-color:var(--bk-accent-dk);background:var(--bk-accent-dk)}
.cvxbk .cvxbk-btn--danger{border-color:var(--bk-red-line);color:var(--bk-red)!important}
.cvxbk .cvxbk-btn:disabled{opacity:.6;cursor:default}
.cvxbk .cvxbk-btn--block{width:100%}

.cvxbk-notice{display:flex;align-items:flex-start;gap:10px;margin:0 20px 16px;padding:12px 14px;border:1px solid var(--bk-line);border-radius:12px;background:var(--bk-soft);color:var(--bk-text);font-size:14px}
.cvxbk-notice strong{display:block;color:var(--bk-ink);font-weight:600}
.cvxbk-notice--warn{border-color:var(--bk-gold-line);background:var(--bk-gold-soft)}
.cvxbk-notice--bad{border-color:var(--bk-red-line);background:var(--bk-red-soft)}
.cvxbk-notice--ok{border-color:#cdeedd;background:var(--bk-green-soft)}
.cvxbk-step .cvxbk-notice{margin:0}
.cvxbk-notice--owner{margin-top:20px}
.cvxbk-notice--owner p{margin:4px 0 0}
.cvxbk-notice--owner ul{margin:8px 0 0;padding-left:18px}
.cvxbk-notice--owner .cvxbk-btn{margin-top:14px}
.cvxbk-notice--owner small{display:block;margin-top:12px;color:var(--bk-muted);font-size:13px}

.cvxbk-card{margin:0 20px 16px;border:1px solid var(--bk-line);border-radius:12px;overflow:hidden}
.cvxbk-card__head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px;padding:14px 16px}
.cvxbk-facts > div{display:flex;justify-content:space-between;gap:16px;padding:13px 16px;border-top:1px solid var(--bk-line)}
.cvxbk-facts dt{color:var(--bk-muted);font-weight:400}
.cvxbk-facts dd{color:var(--bk-ink);font-weight:500;text-align:right}
.cvxbk-facts .is-total{background:var(--bk-soft)}
.cvxbk-facts .is-total dd{font-weight:600}
.cvxbk-step .cvxbk-card{margin:0}
.cvxbk-pill{display:inline-flex;align-items:center;min-height:24px;padding:2px 10px;border-radius:6px;background:#eef2f7;color:var(--bk-text);font-size:13px;font-weight:500;white-space:nowrap}
.cvxbk-pill--ok{background:var(--bk-green-soft);color:var(--bk-green)}
.cvxbk-pill--warn{background:var(--bk-gold-soft);color:var(--bk-gold)}
.cvxbk-pill--bad{background:var(--bk-red-soft);color:var(--bk-red)}
.cvxbk-actions{display:flex;flex-direction:column;gap:10px;padding:0 20px 16px}
.cvxbk-actions__row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.cvxbk-actions__row > :only-child{grid-column:1 / -1}
.cvxbk-ok{display:flex;align-items:center;gap:8px;color:var(--bk-green);font-weight:500}
.cvxbk-confirmbox{display:flex;flex-direction:column;gap:10px;padding:14px;border:1px solid var(--bk-red-line);border-radius:12px;background:var(--bk-red-soft)}

.cvxbk-done{display:flex;flex-direction:column;align-items:center;gap:10px;padding:20px 8px 4px;text-align:center}
.cvxbk-done__icon{display:flex;align-items:center;justify-content:center;width:60px;height:60px;border-radius:50%;background:var(--bk-green-soft);color:var(--bk-green)}
.cvxbk-done__icon--wait{background:var(--bk-gold-soft);color:var(--bk-gold)}
.cvxbk-done__icon svg{width:30px;height:30px}
.cvxbk .cvxbk-done h2{color:var(--bk-ink)!important;font-size:22px!important;font-weight:600!important;line-height:1.3!important}

@media (max-width:560px){
  .cvxbk{padding:0 0 32px;background:#fff}
  .cvxbk-shell{border:0;border-radius:0;box-shadow:none}
  .cvxbk-bar{border-radius:0}
}
@media (prefers-reduced-motion:reduce){.cvxbk *{transition:none!important}}

/* Equipa (0.21.0): escolha do profissional, numa linha que desliza no telemóvel. */
.cvxbk-staff{display:flex;flex-direction:column;gap:8px}
.cvxbk-staff .cvxbk-h3{margin-top:0}
.cvxbk-staff__list{display:flex;flex-wrap:wrap;gap:8px;padding:2px 0 4px}
.cvxbk .cvxbk-staff__item{flex:0 0 auto;display:flex;align-items:center;gap:8px;min-height:44px;padding:6px 14px 6px 6px;border:1px solid var(--bk-line);border-radius:999px;background:#fff;color:var(--bk-ink);font-size:13.5px;font-weight:500;white-space:nowrap;cursor:pointer;-webkit-appearance:none;appearance:none;transition:border-color .15s ease,background .15s ease}
.cvxbk .cvxbk-staff__item:hover{border-color:var(--bk-line-2);background:var(--bk-accent-wash)}
.cvxbk .cvxbk-staff__item[aria-pressed="true"]{border-color:var(--bk-accent);box-shadow:inset 0 0 0 1px var(--bk-accent);background:var(--bk-accent-wash)}
.cvxbk-staff__avatar{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:var(--bk-accent-soft);color:var(--bk-accent);font-size:12px;font-weight:600}
.cvxbk-staff__avatar--any{background:var(--bk-soft);color:var(--bk-muted)}
.cvxbk-staff__avatar .cvxbk-ico{width:16px;height:16px}
