/* E-mail proposal builder. Commercial values live in email-hosting.json. */
.email-page #planos-email { background: #f2f7fa; }
.email-page #planos-email .wp-section-intro { max-width: 720px; margin-bottom: 48px; }
.email-builder { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); align-items: start; gap: clamp(24px,4vw,56px); scroll-margin-top: 110px; }
.email-builder-settings { min-width: 0; }
.email-builder fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.email-builder legend { width: 100%; margin-bottom: 12px; padding: 0; color: var(--navy-900); font-size: 20px; font-weight: 700; letter-spacing: -.025em; }
.email-builder legend > .mono, .email-extras summary > .mono { margin-right: 12px; color: var(--blue-700); font-size: 12px; font-weight: 500; letter-spacing: .04em; }
.email-builder .email-field-hint { margin: 0 0 24px; font-size: 13px; color: var(--ink-500); line-height: 1.65; }
.email-field-hint a { text-decoration: underline; text-underline-offset: 3px; }
.email-rate-head, .email-rate-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) 90px; align-items: center; gap: 16px; }
.email-rate-head { padding: 0 0 12px; color: var(--ink-500); font-size: 11px; font-weight: 600; }
.email-rate-head span:last-child { text-align: center; }
.email-rate-row { min-height: 104px; padding: 20px 0; border-top: 1px solid var(--ink-200); }
.email-capacity strong { display: block; font-size: 36px; line-height: 1.1; letter-spacing: -.05em; color: var(--navy-900); }
.email-capacity strong > span { font-size: 17px; font-weight: 500; letter-spacing: -.02em; }
.email-capacity small { display: block; margin-top: 6px; color: var(--ink-500); font-size: 11px; }
.email-unit-price > strong { display: block; font-size: 21px; color: var(--navy-900); letter-spacing: -.035em; white-space: nowrap; }
.email-unit-price strong > small { margin-left: 3px; font-size: 11px; font-weight: 400; color: var(--ink-500); }
.email-unit-price > span { display: block; margin-top: 5px; color: var(--ink-500); font-size: 12px; white-space: nowrap; }
.email-quantity-field label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.email-builder input:not([type=radio]), .email-builder select { width: 100%; min-height: 48px; border: 1px solid var(--ink-200); border-radius: 0; background: #fff; padding: 10px 12px; color: var(--navy-900); font: inherit; font-size: 16px; }
.email-builder input[type=number] { width: 90px; padding: 10px 8px 10px 12px; font-weight: 650; }
.email-builder input[aria-invalid=true] { border-color: #b42318; box-shadow: 0 0 0 1px #b42318; }
.email-builder :is(input,select,button,a,summary):focus-visible { outline: 3px solid var(--blue-500); outline-offset: 3px; }
.email-extras { margin: 14px 0 30px; border-top: 1px solid var(--ink-200); border-bottom: 1px solid var(--ink-200); }
.email-extras summary { display: flex; align-items: center; min-height: 76px; color: var(--navy-900); font-size: 17px; font-weight: 650; cursor: pointer; list-style: none; }
.email-extras summary::-webkit-details-marker { display: none; }
.email-extras summary > span:last-child { margin-left: auto; padding-left: 12px; color: var(--blue-700); font-size: 24px; font-weight: 400; }
.email-extra-fields { padding: 0 0 10px; }
.email-extra-fields > label, .email-personalize > label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.email-extra-fields label > span, .email-personalize legend > small { margin-left: 4px; font-size: 12px; font-weight: 400; color: var(--ink-500); }
.email-builder select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 7.5 5 5 5-5' fill='none' stroke='%230b1220' stroke-width='1.7'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; font-size: 14px; text-overflow: ellipsis; }
.email-extra-fields > select + .email-field-hint { margin-top: 12px; }
.email-extra-row { display: grid; grid-template-columns: minmax(0,1fr) 90px; align-items: center; gap: 18px; padding: 16px 0; border-top: 1px solid var(--ink-200); }
.email-extra-row label { font-size: 14px; line-height: 1.5; }
.email-extra-row label small { display: block; margin-top: 4px; color: var(--ink-500); font-size: 12px; }
.email-extra-row + .email-field-hint { margin-top: 12px; }
.email-personalize > input { margin: 0 0 16px; }
.email-personalize .email-field-hint { margin-bottom: 0; }
.email-quote-summary { position: sticky; top: 100px; padding: clamp(24px,3vw,36px); background: var(--navy-900); color: #fff; min-width: 0; }
.email-summary-brand { margin: 0 0 16px; font-size: 10px; letter-spacing: .1em; color: #9dd2eb; }
.email-quote-summary h3 { margin: 0 0 24px; max-width: 12ch; font-size: clamp(27px,3vw,38px); font-weight: 600; letter-spacing: -.045em; line-height: 1.05; }
.email-quote-summary [data-quote-identity] { font-size: 14px; overflow-wrap: anywhere; white-space: pre-line; }
.email-quote-summary [data-quote-identity]:empty { display: none; }
.email-quote-summary .email-cycle { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-bottom: 10px; }
.email-cycle legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.email-cycle label { display: flex; gap: 8px; justify-content: center; align-items: center; min-height: 48px; border: 1px solid #486275; background: transparent; font-size: 14px; cursor: pointer; }
.email-cycle label + label { border-left: 0; }
.email-cycle label:has(input:checked) { background: #fff; color: var(--navy-900); }
.email-cycle input { accent-color: var(--blue-700); }
.email-cycle-note { margin: 0 0 24px; font-size: 12px; line-height: 1.6; color: #bfccd7; }
.email-summary-count { display: flex; gap: 8px; align-items: baseline; padding-bottom: 14px; font-size: 12px; color: #bfccd7; }
.email-summary-count strong { color: #fff; font-size: 21px; font-weight: 500; }
.email-summary-lines { padding: 0; margin: 0 0 22px; list-style: none; border-top: 1px solid #3c5265; }
.email-summary-lines li { padding: 13px 0; border-bottom: 1px solid #3c5265; font-size: 13px; line-height: 1.65; color: #e0e9ef; overflow-wrap: anywhere; }
.email-summary-total > span { display: block; margin-bottom: 8px; font-size: 13px; color: #bfccd7; }
.email-summary-total > div { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.email-summary-total strong { font-size: clamp(28px,3.3vw,46px); line-height: 1.1; font-weight: 500; letter-spacing: -.045em; overflow-wrap: anywhere; }
.email-summary-total [data-quote-period] { color: #bfccd7; font-size: 14px; }
.email-summary-fixed { font-size: 13px; color: #e0e9ef; line-height: 1.6; }
.email-summary-fixed:empty { display: none; }
.email-summary-annual { display: flex; flex-wrap: wrap; gap: 5px 12px; justify-content: space-between; margin: 20px 0 0; padding-top: 16px; border-top: 1px solid #3c5265; color: #bfccd7; font-size: 12px; }
.email-summary-annual strong { color: #fff; white-space: nowrap; font-size: 14px; font-weight: 600; }
.email-quote-status { margin: 14px 0 0; font-size: 12px; line-height: 1.6; color: #fbd5a4; }
.email-quote-status:empty { display: none; }
.email-quote-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.email-quote-actions :is(button,a) { display: flex; justify-content: space-between; align-items: center; gap: 14px; width: 100%; min-height: 48px; padding: 13px 16px; border: 1px solid #647b8c; border-radius: 0; background: transparent; color: #fff; font: inherit; font-size: 13px; font-weight: 600; text-align: left; cursor: pointer; }
.email-page .email-quote-actions .btn-primary { background: #fff; border-color: #fff; color: var(--navy-900); box-shadow: none; }
.email-quote-actions :is(button,a):hover { background: #e3f4fc; border-color: #e3f4fc; color: var(--navy-900); }
.email-quote-actions :disabled, .email-quote-actions [aria-disabled=true] { opacity: .45; pointer-events: none; cursor: not-allowed; }
.email-quote-terms { margin: 20px 0 0; color: #bfccd7; font-size: 11px; line-height: 1.7; }
@media (max-width: 960px) {
  .email-builder { grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 24px; }
  .email-quote-summary { padding: 24px; }
  .email-rate-head, .email-rate-row { grid-template-columns: minmax(0,1fr) minmax(0,1fr) 72px; gap: 10px; }
  .email-builder .email-quantity-field input { width: 72px; }
  .email-unit-price > strong { font-size: 18px; }
  .email-capacity strong { font-size: 30px; }
}
@media (max-width: 760px) {
  .email-builder { grid-template-columns: minmax(0,1fr); gap: 32px; }
  .email-quote-summary { position: static; }
  .email-builder legend { font-size: 18px; }
  .email-quote-summary h3 { max-width: none; font-size: 30px; }
  .email-summary-total strong { font-size: clamp(30px,8vw,44px); }
  .email-rate-head { font-size: 10px; }
  .email-rate-row { min-height: 96px; }
  .email-extras summary { font-size: 15px; }
  .email-summary-brand { font-size: 10px; }
}
@media print {
  @page { size: A4; margin: 18mm; }
  body:has(.email-page) { background: #fff !important; color: #111 !important; }
  body:has(.email-page) > :not(main), .email-page > section:not(#planos-email), #planos-email .wp-section-intro, .email-builder-settings, .email-quote-actions, .email-quote-status { display: none !important; }
  .email-page, .email-page #planos-email { overflow: visible; background: #fff !important; padding: 0; }
  #planos-email > .container { width: 100%; max-width: none; padding: 0; }
  .email-builder { display: block; }
  .email-quote-summary { position: static; padding: 0; background: #fff; color: #111; }
  .email-quote-summary :is(h3,p,span,strong,label,li) { color: #111 !important; }
  .email-quote-summary h3 { max-width: none; }
  .email-quote-summary .email-cycle { display: block; margin-bottom: 10px; }
  .email-cycle label { display: none; }
  .email-cycle label:has(input:checked) { display: block; min-height: 0; padding: 0; border: 0; }
  .email-cycle input { display: none; }
  .email-summary-lines, .email-summary-lines li, .email-summary-annual { border-color: #aaa; }
  .email-summary-lines li { break-inside: avoid; }
  .email-summary-total strong { font-size: 36px; }
}
