/* cores whitelabel principal */
:root{

    /* ========================
       BASE
    ======================== */

    --bg:#ffffff;
    --card:#ffffff;

    --text:#111827;
    --muted:#6b7280;

    --border:#e5e7eb;

    /* ========================
       IDENTIDADE
    ======================== */

    /* azul principal (tecnologia) */
    --primary:#1D4ED8;

    /* hover / ativo */
    --primary-dark:#1E40AF;

    /* foco acessível */
    --focus:#1D4ED8;

    /* cor estrutural */
    --accent:#111111;

    /* ========================
       CORES DA MARCA
       (derivadas da logo)
    ======================== */

    --brand-blue:#1D4ED8;
    --brand-yellow:#F59E0B;
    --brand-red:#DC2626;
    --brand-black:#111111;

    /* ========================
       ESTADOS
    ======================== */

    --ok:#16A34A;

    --err:#DC2626;

    --warn:#D97706;

    /* ========================
       UTILIDADES
    ======================== */

    --hover:#F3F4F6;

    --soft:#F9FAFB;

    --highlight:#EFF6FF;

}
*{box-sizing:border-box}

body{
	margin:0; background:var(--bg); color:var(--text);
	font-family: system-ui,-apple-system,"Segoe UI",Roboto,Ubuntu,Cantarell,"Helvetica Neue",Arial;
	-webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
}
.container{max-width:760px; margin:0 auto; padding:24px 16px 48px;}
header{ margin:8px 0 16px; }
.notice{
	margin:16px 0; padding:12px 14px; border:1px solid #fde68a; background:#fffbeb; color:var(--warn);
	border-radius:12px; font-size:14px;
}

.card{
	background:var(--card); border:1px solid var(--border);
	border-radius:14px; padding:16px; box-shadow:0 2px 10px rgba(0,0,0,.03);
}

form .field{ margin-bottom:14px; }
label{ display:block; font-size:13px; color:var(--muted); margin-bottom:6px; }
input[type="text"], select, button{ font-size:16px; }
input[type="text"], select{
	width:100%; padding:12px 14px; border-radius:10px;
	border:1px solid var(--border); background:#fff; color:var(--text);
	outline:none; transition:border .15s ease, box-shadow .15s ease;
	-webkit-appearance: none; appearance: none;
}
/* cores whitelabel principal */
input[type="text"]:focus, select:focus{
	border-color:var(--focus); 
	box-shadow:0 0 0 3px rgba(238,29,35,.2);
}
.hint{ font-size:12px; color:var(--muted); margin-top:6px; }

.actions{ display:flex; gap:10px; margin-top:10px; }
/* cores whitelabel principal */
button{
	padding:12px 16px; border-radius:10px; border:1px solid var(--border);
	background:var(--primary); color:#fff; cursor:pointer; font-weight:600;
	transition: filter .15s ease, transform .06s ease;
}
/* cores whitelabel principal */
button.secondary{ background:#fff; color:var(--primary);
border:1px solid var(--primary); }
button:disabled{ opacity:.5; cursor:not-allowed; }
button:active{ transform: translateY(1px); }

.status{
	margin-top:12px; font-size:14px; padding:10px 12px; border-radius:8px; display:none;
	border:1px solid var(--border); color:var(--muted); background:#fafafa;
}
.status.show{ display:block; }
.status.ok{ border-color: rgba(5,150,105,.35); color:#065f46; background:#ecfdf5; }
.status.err{ border-color: rgba(220,38,38,.35); color:var(--err); background:#fef2f2; }
.status.warn{ border-color:#facc15; color:var(--warn); background:#fffbeb; }

.result{ display:none; margin-top:16px; }
.result.show{ display:block; }
.result .title{ font-weight:600; margin:0 0 4px; }
.result .desc{ color:var(--muted); margin:0 0 12px; font-size:14px; }
.result .linkbox{
	border:1px dashed var(--border); background:#fff; border-radius:10px;
	padding:12px; word-break:break-all; font-size:15px;
}
/* cores whitelabel principal */
.result .open{
	margin-top:12px; display:inline-block; text-decoration:none; font-weight:600;
	 background:var(--primary); color:#fff; padding:12px 16px; border-radius:10px;
}

@media (max-width:480px){
	.actions{ flex-direction:column; }
	button{ width:100%; }
}


  
  body { font-size:16px; }
  @media (max-width:420px){ body{ font-size:15.5px; } }

  .wrap { max-width: 860px; margin: 0 auto; padding: clamp(16px, 3vw, 28px); }

  /* ===== Header reorganizado ===== */
  .header {
    border:1px solid var(--line); border-radius:12px; padding:16px; margin-bottom:12px;
    display:grid; grid-template-columns: 1.2fr .8fr; gap:16px; align-items:start;
  }
  @media (max-width: 760px){
    .header { grid-template-columns: 1fr; }
  }

  .hdr-left h1 { font-size: clamp(18px, 2.6vw, 24px); margin:0 0 10px; font-weight:800; }
  .badges { display:flex; flex-wrap:wrap; gap:8px; }
  .chip {
    display:inline-flex; align-items:center; gap:8px;
    border:1px solid var(--line); border-radius:999px; padding:8px 12px; background:#fff;
    font-size:14px; line-height:1.2;
  }
  .chip strong { font-weight:800; opacity:.85; }

  .what-you-can-do { margin: 10px 0 0; font-size:14px; color:var(--muted); }

  .hdr-actions { display:flex; flex-direction:column; gap:10px; }
  .secure {
    border:1px solid var(--line); border-radius:10px; padding:10px 12px;
    font-size:14px; line-height:1.4; background:#fff;
  }
  .secure strong { font-weight:800; }
  .countdown { margin-top:4px; font-weight:700; }
  .actions-row { display:flex; gap:10px; flex-wrap:wrap; }
  .btn {
    display:inline-block; padding:12px 16px; border-radius:10px;
    border:1px solid rgba(0,0,0,.2); background:#000; color:#fff;
    text-decoration:none; font-weight:700; text-align:center;
  }
  .btn.secondary { background:#fff; color:#000; }

  /* ===== Seletor de plano ===== */
  .plan-switch {
    margin-top:12px; border:1px solid var(--line); border-radius:10px; padding:12px; background:#fff;
  }
  .plan-switch p { margin:0 0 8px; font-size:14px; color:var(--muted); }

  .select-wrap { position:relative; max-width:100%; }
  .select-wrap select {
    appearance:none; -webkit-appearance:none; -moz-appearance:none;
    width:100%; max-width:520px; min-width:220px;
    padding:12px 40px 12px 12px;
    border:1px solid var(--line); border-radius:10px; background:#fff;
    font-size:16px; line-height:1.2;
  }
  .select-wrap .caret {
    position:absolute; right:12px; top:50%; transform:translateY(-50%);
    pointer-events:none; font-size:18px; color:#666;
  }

  /* >>> CTA Card: destaque medicamento */
  .cta-card{
    margin-top:12px;
    border:1px solid var(--line);
    border-radius:14px;
    padding:14px;
    background: linear-gradient(135deg, #ffffff 0%, #f7f7f7 100%);
  }
  .cta-top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
  }
  .cta-left{
    display:flex;
    gap:12px;
    align-items:flex-start;
    min-width:0;
  }
  .cta-ico{
    width:44px; height:44px;
    border-radius:12px;
    border:1px solid rgba(0,0,0,.12);
    display:flex; align-items:center; justify-content:center;
    font-size:22px;
    background:#fff;
    flex-shrink:0;
  }
  .cta-title{
    margin:0;
    font-size:16px;
    font-weight:900;
  }
  .cta-text{
    margin:6px 0 0;
    font-size:14px;
    color:var(--muted);
    line-height:1.35rem;
  }
  .cta-actions{
    display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end;
  }
  .cta-actions .btn{ padding:10px 14px; }
  .cta-foot{
    margin-top:10px;
    font-size:12px;
    color:#555;
  }

  /* ===== Listagem de menus ===== */
  .panel {
    border:1px solid var(--line);
    border-radius:12px; padding:8px 8px 12px;
  }
  .sec { border-top:1px solid var(--line); padding:10px 8px; }
  .sec:first-child{ border-top:none; }

  details { border-radius:8px; }
  summary {
    list-style:none; display:flex; align-items:center; justify-content:space-between; gap:10px;
    padding:12px 12px; border-radius:8px; cursor:pointer; user-select:none; transition:background .15s ease;
  }
  summary:hover { background:var(--hover); }
  summary:focus-visible { outline:2px solid #999; }
  summary::-webkit-details-marker { display:none; }

  .sum-left{ display:flex; align-items:center; gap:10px; min-width:0; }
  summary .icon { width:28px; text-align:center; font-size:20px; flex-shrink:0; }
  summary .label { font-size:1rem; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .chev { font-size:16px; transform:rotate(0deg); transition:transform .15s linear; opacity:.7; }
  details[open] > summary .chev { transform:rotate(90deg); }

  .subs { margin:6px 0 0 36px; }
  .sub { display:flex; gap:8px; padding:12px 0; border-top:1px solid var(--line); }
  .sub:first-child { border-top:none; }
  .sicon { width:24px; text-align:center; font-size:16px; flex-shrink:0; }
  .sub a { text-decoration:none; color:inherit; }
  .sub a:hover { text-decoration:underline; }
  .sub h3 { font-size:0.95rem; font-weight:700; margin:0; }
  .sub p { font-size:0.9rem; margin:4px 0 0; color:var(--muted); line-height:1.35rem; }

  .menu-link {
    display:flex; align-items:flex-start; gap:10px; padding:12px 10px; text-decoration:none; color:inherit; border-radius:8px;
  }
  .menu-link:hover { background:var(--hover); }
  .menu-link .icon { width:28px; text-align:center; font-size:20px; }
  .menu-link .label { font-size:1rem; font-weight:700; }
  .menu-desc { font-size:0.9rem; color:var(--muted); margin:4px 0 0 36px; line-height:1.35rem; }

  .note { font-size:12px; color:#555; margin-top:6px; }