/**
 * Página de cotação — complementa ss-premium-pages (header/hero global + tema).
 */
body.ss-premium-page.ss-cotacao-page {
  padding-bottom: calc(var(--stickyH, 92px) + 20px);
}

:root {
  --line: rgba(148, 163, 184, 0.28);
  --focus: 0 0 0 3px rgba(250, 204, 21, 0.25);
  --wa: #25d366;
  --stickyH: 92px;
}

@media (max-width: 768px) {
  :root {
    --stickyH: 132px;
  }
}

.ss-cotacao-page .kicker {
  font-weight: 900;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.ss-cotacao-page .kicker .iconify {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

/* Form card (não confundir com .card das páginas de produto) */
body.ss-cotacao-page #quoteForm.card {
  background: radial-gradient(circle at top left, #020b2a, #020617 70%);
  border-radius: var(--radius, 18px);
  padding: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow, 0 18px 40px rgba(0, 0, 0, 0.75));
  min-width: 0;
}

[data-theme="light"] body.ss-cotacao-page #quoteForm.card {
  background: linear-gradient(165deg, #ffffff, #f8fafc);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: var(--shadow);
}

.ss-cotacao-page .grid {
  display: grid;
  gap: 16px;
}
.ss-cotacao-page .grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.ss-cotacao-page .grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
  .ss-cotacao-page .grid-3,
  .ss-cotacao-page .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .ss-cotacao-page .grid-3,
  .ss-cotacao-page .grid-2 {
    grid-template-columns: 1fr;
  }
}

.ss-cotacao-page .row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.ss-cotacao-page .pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #e5e7eb;
  font-weight: 900;
  font-size: 0.86rem;
  max-width: 100%;
}

[data-theme="light"] .ss-cotacao-page .pill {
  background: rgba(241, 245, 249, 0.95);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

.ss-cotacao-page .pill .iconify {
  width: 18px;
  height: 18px;
  color: var(--yellow, #ffd002);
}
.ss-cotacao-page .pill span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ss-cotacao-page .chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.ss-cotacao-page .chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(2, 11, 42, 0.55);
  border-radius: 999px;
  padding: 12px 14px;
  font-weight: 900;
  color: #e5e7eb;
  cursor: pointer;
  min-width: 0;
  max-width: 100%;
}

[data-theme="light"] .ss-cotacao-page .chip {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

.ss-cotacao-page .chip .iconify {
  width: 18px;
  height: 18px;
  color: var(--yellow, #ffd002);
  flex: 0 0 auto;
}
.ss-cotacao-page .chip[aria-pressed="true"] {
  border-color: rgba(250, 204, 21, 0.65);
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.22), rgba(255, 138, 0, 0.1));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

.ss-cotacao-page label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-weight: 900;
  min-width: 0;
}
.ss-cotacao-page .input,
.ss-cotacao-page select,
.ss-cotacao-page textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(2, 11, 42, 0.45);
  color: #e5e7eb;
  font: inherit;
  outline: none;
  min-width: 0;
}

[data-theme="light"] .ss-cotacao-page .input,
[data-theme="light"] .ss-cotacao-page select,
[data-theme="light"] .ss-cotacao-page textarea {
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.12);
}

.ss-cotacao-page textarea {
  min-height: 88px;
  resize: vertical;
}
.ss-cotacao-page .input:focus,
.ss-cotacao-page select:focus,
.ss-cotacao-page textarea:focus {
  border-color: rgba(250, 204, 21, 0.75);
  box-shadow: var(--focus);
}
.ss-cotacao-page .hint {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}
.ss-cotacao-page .divider {
  height: 1px;
  background: rgba(148, 163, 184, 0.25);
  margin: 14px 0;
}

.ss-cotacao-page .cotacao-hint-box {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(2, 11, 42, 0.45);
}
[data-theme="light"] .ss-cotacao-page .cotacao-hint-box {
  background: rgba(248, 250, 252, 0.95);
  border-color: rgba(15, 23, 42, 0.1);
}

.ss-cotacao-page details {
  background: rgba(2, 11, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 16px;
  padding: 14px 16px;
}

[data-theme="light"] .ss-cotacao-page details {
  background: rgba(248, 250, 252, 0.95);
  border-color: rgba(15, 23, 42, 0.1);
}

.ss-cotacao-page summary {
  cursor: pointer;
  font-weight: 900;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.ss-cotacao-page summary .left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.ss-cotacao-page summary .left .iconify {
  width: 20px;
  height: 20px;
  color: var(--yellow, #ffd002);
}
.ss-cotacao-page summary .right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #e5e7eb;
  min-width: 0;
}

[data-theme="light"] .ss-cotacao-page summary .right {
  color: #0f172a;
}

.ss-cotacao-page summary .right span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(46vw, 420px);
}
.ss-cotacao-page summary .right .iconify {
  width: 18px;
  height: 18px;
  color: #e5e7eb;
}

.ss-cotacao-page .prod {
  margin-top: 12px;
}
.ss-cotacao-page .hide {
  display: none !important;
}

/* Barra fixa inferior */
.ss-cotacao-page .sticky-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12000;
  padding: 10px 0;
  backdrop-filter: blur(18px) saturate(170%);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
  border-top: 1px solid rgba(148, 163, 184, 0.28);
}

[data-theme="light"] .ss-cotacao-page .sticky-actions {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.94));
  border-top-color: rgba(15, 23, 42, 0.1);
}

.ss-cotacao-page .sticky-actions .wrap {
  width: min(100% - 48px, 1280px);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ss-cotacao-page .status {
  color: var(--muted);
  font-weight: 900;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ss-cotacao-page .actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ss-cotacao-page .sticky-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 900;
  max-width: 100%;
  min-width: 0;
  cursor: pointer;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
}

[data-theme="light"] .ss-cotacao-page .sticky-actions .btn {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

.ss-cotacao-page .sticky-actions .btn .iconify {
  width: 18px;
  height: 18px;
}
.ss-cotacao-page .sticky-actions .btn-primary {
  border: none;
  color: #000;
  background: linear-gradient(135deg, #ffd002, #ff8a00);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}
.ss-cotacao-page .sticky-actions .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .ss-cotacao-page .sticky-actions .wrap {
    flex-direction: column;
    align-items: stretch;
  }
  .ss-cotacao-page .status {
    white-space: normal;
  }
  .ss-cotacao-page .actions {
    justify-content: stretch;
  }
  .ss-cotacao-page .sticky-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.ss-cotacao-page .fab-whats,
.ss-cotacao-page .wa-fab {
  position: fixed;
  right: 18px;
  bottom: calc(var(--stickyH) + 18px);
  z-index: 12000;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--wa), #1fbf5a);
  color: #04140c;
  font-weight: 900;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  max-width: calc(100vw - 36px);
}
.ss-cotacao-page .fab-whats .iconify,
.ss-cotacao-page .wa-fab .iconify {
  width: 22px;
  height: 22px;
}
.ss-cotacao-page .fab-whats span:last-child,
.ss-cotacao-page .wa-fab span:last-child {
  white-space: nowrap;
}

@supports (padding: max(0px)) {
  .ss-cotacao-page .fab-whats,
  .ss-cotacao-page .wa-fab {
    bottom: max(calc(var(--stickyH) + 14px), env(safe-area-inset-bottom));
    right: max(14px, env(safe-area-inset-right));
    max-width: calc(100vw - max(28px, env(safe-area-inset-right) * 2));
  }
}
