/* Envio de amostras — Clínica do Grão */

/* Espaçamento mais compacto nesta página (evita “buracos” entre seções) */
body.cg-site .content-panel.envio-page > * + * {
  margin-top: 0.85rem;
}

body.cg-site .content-panel.envio-page > h2 {
  margin-top: 1.35rem;
  margin-bottom: 0.55rem;
}

body.cg-site .content-panel.envio-page > h2:first-child {
  margin-top: 0;
}

body.cg-site .content-panel.envio-page > h2 + p,
body.cg-site .content-panel.envio-page > h2 + .envio-zoom,
body.cg-site .content-panel.envio-page > h2 + .envio-qty,
body.cg-site .content-panel.envio-page > h2 + .envio-pack-grid,
body.cg-site .content-panel.envio-page > h2 + .envio-id-block,
body.cg-site .content-panel.envio-page > h2 + .envio-error-grid,
body.cg-site .content-panel.envio-page > h2 + .envio-faq,
body.cg-site .content-panel.envio-page > h2 + .envio-downloads {
  margin-top: 0.55rem;
}

body.cg-site .content-panel.envio-page #coleta {
  margin-top: 0.85rem;
}

body.cg-site .content-panel.envio-page #coleta .envio-zoom {
  margin-top: 0.75rem;
}

body.cg-site .content-panel.envio-page .envio-actions {
  margin-top: 0.75rem;
}

.envio-lead-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 8px;
}

.envio-lead-strip article {
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f5fbf7 0%, #ffffff 100%);
  border: 1px solid rgba(15, 45, 31, 0.08);
}

.envio-lead-strip strong {
  display: block;
  margin-bottom: 4px;
  color: #163528;
  font-size: 0.92rem;
}

.envio-lead-strip span {
  color: var(--muted, #5d6f64);
  font-size: 0.86rem;
  line-height: 1.35;
}

.envio-notice {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  border-left: 4px solid #1a6b4a;
  background: #eef8f2;
  color: #315144;
  font-size: 0.92rem;
  line-height: 1.45;
}

.envio-steps {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 10px;
  line-height: 1.45;
}

.envio-visual-stack {
  display: grid;
  gap: 12px;
}

.envio-visual-stack img,
.envio-diagram {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 16px;
  border: 1px solid rgba(15, 45, 31, 0.08);
  background: #f7faf7;
}

.envio-diagram--wide {
  background: #fff;
}

/* Clique para ampliar — altura = só a da imagem (sem caixa branca extra) */
.envio-zoom {
  position: relative;
  display: block;
  width: 100%;
  height: max-content;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  border-radius: 16px;
  overflow: hidden;
  line-height: 0;
}

.envio-zoom:focus-visible {
  outline: 2px solid #1a6b4a;
  outline-offset: 3px;
}

.envio-zoom > .envio-diagram {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  transition: transform 0.3s ease;
}

.envio-zoom:hover > .envio-diagram {
  transform: scale(1.015);
}

.envio-zoom__hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: #fff;
  background: rgba(8, 14, 11, 0.62);
  backdrop-filter: blur(4px);
  pointer-events: none;
}


.envio-qty {
  margin: 16px 0 8px;
  padding: 16px;
  border-radius: 20px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(44, 132, 99, 0.1), transparent 50%),
    linear-gradient(165deg, #f3faf6 0%, #ffffff 55%);
  border: 1px solid rgba(26, 107, 74, 0.14);
  display: grid;
  gap: 12px;
  container-type: inline-size;
  container-name: envio-qty;
}

.envio-qty__step {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(26, 107, 74, 0.1);
}

.envio-qty__step-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.envio-qty__step-num {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #163528;
  color: #eef7f2;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1;
}

.envio-qty__step-head h3 {
  margin: 0;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  color: #163528;
  line-height: 1.25;
}

.content-panel .envio-qty__step-head h3 {
  margin: 0;
  font-size: 0.98rem;
}

.envio-qty__step-head p {
  margin: 2px 0 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--muted, #5d6f64);
}

.envio-qty__product {
  margin: 0;
  max-width: 280px;
}

.envio-qty__product select {
  width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.envio-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.envio-chip {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(15, 45, 31, 0.1);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.envio-chip:has(input:checked) {
  border-color: rgba(26, 107, 74, 0.45);
  box-shadow: inset 0 0 0 1px rgba(26, 107, 74, 0.12);
  background: #f3faf6;
}

.envio-chip strong {
  display: block;
  font-size: 0.84rem;
  line-height: 1.25;
}

.envio-chip small {
  color: var(--muted, #5d6f64);
  font-size: 0.72rem;
  line-height: 1.3;
}

.envio-chip input {
  margin-top: 2px;
  accent-color: #1a6b4a;
}

.envio-qty__outcome {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
}

.envio-result-card {
  padding: 16px;
  border-radius: 16px;
  background: #163528;
  color: #eef7f2;
}

.content-panel .envio-result-card .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(238, 247, 242, 0.78);
}

.content-panel .envio-result-card .massa {
  margin: 6px 0 10px;
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #eef7f2;
}

.content-panel .envio-result-card p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.4;
  color: rgba(238, 247, 242, 0.92);
}

.content-panel .envio-result-card .pack {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #eef7f2;
}

.envio-qty__breakdown {
  padding: 14px;
  border-radius: 16px;
  background: #f7faf7;
  border: 1px solid rgba(26, 107, 74, 0.1);
  display: grid;
  gap: 10px;
  align-content: start;
}

.envio-qty__breakdown-head {
  display: grid;
  gap: 2px;
}

.envio-qty__breakdown-head strong {
  color: #163528;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}

.envio-qty__breakdown-head span {
  color: var(--muted, #5d6f64);
  font-size: 0.78rem;
  line-height: 1.35;
}

.envio-qty__metrics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.envio-qty__metrics li {
  display: grid;
  gap: 2px;
  padding: 8px 9px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(26, 107, 74, 0.08);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.envio-qty__metrics li.is-active {
  background: #e8f5ee;
  border-color: rgba(26, 107, 74, 0.28);
  box-shadow: inset 0 0 0 1px rgba(26, 107, 74, 0.06);
}

.envio-qty__metrics li.is-integ.is-active {
  background: #163528;
  border-color: #163528;
}

.envio-qty__metrics li.is-integ.is-active span,
.envio-qty__metrics li.is-integ.is-active strong {
  color: #eef7f2;
}

.envio-qty__metrics span {
  color: #5d6f64;
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.envio-qty__metrics strong {
  color: #163528;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.envio-qty__tip {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted, #5d6f64);
  line-height: 1.4;
}

@container envio-qty (min-width: 520px) {
  .envio-qty__outcome {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }
}

@container envio-qty (min-width: 680px) {
  .envio-qty {
    padding: 18px;
    gap: 14px;
  }

  .envio-chips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .envio-qty__metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .envio-qty__product {
    max-width: 320px;
  }
}

.envio-pack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.envio-pack-grid article {
  padding: 14px;
  border-radius: 14px;
  background: #f7faf7;
  border: 1px solid rgba(15, 45, 31, 0.07);
}

.envio-pack-grid h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
}

.envio-pack-grid p {
  margin: 0;
  color: var(--muted, #5d6f64);
  font-size: 0.9rem;
  line-height: 1.4;
}

.envio-id-block {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 16px;
  align-items: start;
}

.envio-label-panel {
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(44, 132, 99, 0.1), transparent 55%),
    linear-gradient(165deg, #f4faf6 0%, #ffffff 52%);
  border: 1px solid rgba(26, 107, 74, 0.16);
  box-shadow: 0 10px 28px rgba(22, 53, 40, 0.06);
  font-family: inherit;
}

.envio-label-panel__head {
  padding: 12px 14px 10px;
  border-bottom: 1px solid rgba(26, 107, 74, 0.1);
}

.envio-label-panel__badge {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(26, 107, 74, 0.1);
  color: #1a6b4a;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.envio-label-panel__head strong {
  display: block;
  color: #163528;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.envio-label-panel__head p {
  margin: 3px 0 0;
  color: var(--muted, #5d6f64);
  font-size: 0.8rem;
  line-height: 1.35;
}

.envio-label-panel__fields {
  list-style: none;
  margin: 0;
  padding: 10px 12px 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 8px;
}

.envio-label-panel__fields li {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.envio-label-panel__fields li.is-wide {
  grid-column: 1 / -1;
}

.envio-label-panel__fields span {
  flex: 0 1 auto;
  max-width: 46%;
  color: #385146;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
}

.envio-label-panel__fields i {
  flex: 1 1 auto;
  display: block;
  min-width: 0;
  height: 22px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(26, 107, 74, 0.14);
  box-shadow: inset 0 -1px 0 rgba(26, 107, 74, 0.06);
  font-style: normal;
}

.envio-error-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.envio-error-grid article {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fef2f2;
  border: 1px solid rgba(185, 28, 28, 0.12);
  color: #7f1d1d;
  font-weight: 600;
  font-size: 0.9rem;
}

.envio-faq details {
  border: 1px solid rgba(15, 45, 31, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  margin-bottom: 8px;
}

.envio-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: #163528;
}

.envio-faq details p {
  margin: 8px 0 0;
  color: var(--muted, #5d6f64);
  line-height: 1.45;
}

.envio-downloads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.envio-downloads a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f3f7f4;
  border: 1px solid rgba(15, 45, 31, 0.08);
  font-weight: 700;
  color: #163528;
}

.envio-downloads a:hover {
  background: #e8f5ee;
}

.envio-fineprint {
  margin-top: 12px;
  font-size: 0.84rem;
  color: var(--muted, #5d6f64);
  line-height: 1.4;
}

@media (max-width: 900px) {
  .envio-lead-strip,
  .envio-pack-grid,
  .envio-error-grid,
  .envio-downloads,
  .envio-id-block {
    grid-template-columns: 1fr;
  }

  .envio-label-panel__fields {
    grid-template-columns: 1fr;
  }

  .envio-chips {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 560px) {
  .envio-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
