.home-calculo-frete {
  display: flex;
  gap: 0;
  justify-content: space-between;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: #1A1A1A;
  --amarelo: #FFD400;
}

.app-calculator-card .cadastro-frete-bar {
  width: 100%;
  margin: 0;
  padding: 12px;
  border-bottom: 1px solid #dbe3ef;
  background: #fff;
}

.app-calculator-card .cadastro-frete-card {
  border-color: #dbe3ef;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
}

.home-calculo-frete-esquerda,
.home-calculo-frete-direita {
  flex: 0 0 50%;
  min-width: 0;
  box-sizing: border-box;
  background: linear-gradient(180deg, #fff 0%, #f8f9fb 100%);
  box-shadow: none;
  border-radius: 0;
}

.home-calculo-frete-esquerda {
  display: flex;
  justify-content: center;
  text-align: left;
  padding: 2%;
}

.home-calculo-frete-direita {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  padding: 24px 12px 5px;
  border-left: 1px solid #eef2f7;
}

.frete-wrapper {
  width: 100%;
  min-width: 0;
}

.frete-form {
  width: 100%;
  max-width: 640px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.frete-row {
  display: flex;
  gap: 16px;
  width: 100%;
  align-items: flex-end;
}

.frete-row:last-child {
  margin-top: 22px;
}

.frete-field {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.frete-field label {
  font-size: 14px;
  font-weight: 500;
  color: #111;
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.frete-field label small {
  font-size: 12px;
  font-weight: 400;
  color: #777;
}

.frete-field input {
  height: 46px;
  padding: 0 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  font-size: 1.1rem;
}

.frete-field input:focus {
  border-color: #ffd400;
  box-shadow: 0 0 10px rgba(255, 140, 0, 0.6);
}

.frete-volumes-toggle-wrap {
  margin-top: -8px;
}

.frete-volumes-toggle {
  border: 0;
  background: transparent;
  color: #0b4ea2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.frete-volumes-toggle:hover {
  color: #083b78;
  text-decoration: underline;
}

.frete-volumes-toggle i {
  color: #64748b;
}

.frete-volumes {
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.frete-volumes__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef4fb 100%);
  border-bottom: 1px solid #dbe4ef;
}

.frete-volumes__head strong {
  display: block;
  font-size: 14px;
  color: #0f172a;
}

.frete-volumes__head span {
  display: block;
  margin-top: 2px;
  color: #475569;
  font-size: 12px;
}

.frete-volumes__summary {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.frete-volumes__summary span {
  margin: 0;
  min-width: 74px;
  padding: 6px 9px;
  border: 1px solid #d7e3f3;
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
  text-align: center;
}

.frete-volumes__inputs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 14px 8px;
}

.frete-volumes__inputs label {
  display: grid;
  gap: 5px;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.frete-volumes__inputs input {
  width: 100%;
  height: 40px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 16px;
  font-weight: 400;
  box-sizing: border-box;
}

.frete-volumes__inputs input:focus {
  outline: none;
  border-color: #ffd400;
  box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.22);
}

.frete-volumes__controls {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) 112px;
  gap: 10px;
  padding: 0 14px 12px;
  align-items: end;
}

.frete-volume-btn {
  min-height: 40px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.frete-volume-btn:hover {
  border-color: #94a3b8;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.frete-volume-btn--primary {
  border-color: #f6c400;
  background: #ffd400;
}

.frete-volumes__message {
  margin: 0 14px 10px;
  padding: 10px 12px;
  border: 1px solid #f8b4b4;
  border-radius: 8px;
  background: #fde8e8;
  color: #111827;
  font-weight: 700;
}

.frete-volumes__list {
  display: grid;
  gap: 8px;
  padding: 0 14px 12px;
  max-height: 190px;
  overflow: auto;
}

.frete-volume-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1.4fr) minmax(110px, 0.8fr) 38px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.frete-volume-item__index {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
  display: inline-grid;
  place-items: center;
  font-weight: 900;
}

.frete-volume-item__main strong,
.frete-volume-item__meta strong {
  display: block;
  color: #0f172a;
  font-size: 13px;
}

.frete-volume-item__main span,
.frete-volume-item__meta span {
  display: block;
  margin-top: 2px;
  color: #475569;
  font-size: 12px;
}

.frete-volume-item__actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.frete-volume-icon {
  width: 34px;
  height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.frete-volume-icon:hover {
  border-color: #64748b;
}

.frete-volumes__empty {
  margin: 0 14px 12px;
  padding: 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #64748b;
  text-align: center;
  font-weight: 700;
}

.bt-novo-home-frete,
.frete-form button,
.coluna-info button {
  width: 100%;
  margin-top: 0;
  padding: 14px 0;
  border-radius: 8px;
}

.bt-novo-home-frete {
  min-height: 50px;
}

.frete-form .frete-volume-btn {
  width: auto;
  padding: 0 12px;
}

.frete-form .frete-volumes-toggle {
  width: auto;
}

.frete-form .frete-volume-icon {
  width: 34px;
  min-height: 34px;
  padding: 0;
}

.frete-error-topo {
  width: 100%;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #f8b4b4;
  border-left: 4px solid #ef4444;
  border-radius: 8px;
  background: #fde8e8;
  color: #111827;
  font-size: 12px;
  line-height: 1.4;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.08);
}

.frete-resultado-actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.frete-resultado-actions .btn-imprimir-etiqueta-dev {
  width: 100%;
  max-width: 360px;
}


.frete-resultado-placeholder {
  color: #475569;
  font-size: 15px;
  line-height: 1.7;
}

.frete-resultado-loading {
  min-height: 220px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #334155;
  font-size: 15px;
  font-weight: 700;
}

.frete-resultado-security-block {
  min-height: 180px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 24px;
  border: 1px solid #f59e0b;
  border-left: 5px solid #f59e0b;
  border-radius: 8px;
  background: #fffbeb;
  color: #92400e;
  box-shadow: 0 10px 22px rgba(245, 158, 11, 0.12);
}

.frete-resultado-security-block strong {
  color: #78350f;
  font-size: 17px;
}

.frete-resultado-security-block span {
  color: #92400e;
  font-size: 14px;
  line-height: 1.45;
}

.frete-loading-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #e5e7eb;
  border-top-color: #ffd400;
  border-radius: 50%;
  animation: freteSpin 0.8s linear infinite;
}

.frete-resultado-enderecos {
  display: grid;
  gap: 2px;
  margin-bottom: 5px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.frete-resultado-box {
  background: #f8fafc;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  padding: 5px;
  text-align: left;
  font-size: 0.9em;
}

.frete-resultado-linha {
  margin: 3px 0;
  font-size: 1.0em;
  color: #334155;
}

.frete-resultado-linha strong {
  color: #0f172a;
}

.frete-resultado-medidas {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
  align-items: center;
}

.frete-resultado-medidas[hidden] {
  display: none !important;
}

.frete-resultado-medidas.medidas-5 {
  grid-template-columns: 1fr 1fr 1fr 1fr minmax(124px, 1.25fr);
}

.frete-resultado-medidas.medidas-5 > div {
  min-width: 0;
  min-height: 29px;
  background: #f5f5f5;
  border-radius: 10px;
  border: 1px solid #ddd;
  padding: 5px 8px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  color: #111;
  font-size: 1.0em;
  gap: 4px;
  white-space: nowrap;
}

.frete-resultado-volumes {
  margin: -8px 0 16px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
  text-align: left;
}

.frete-resultado-volumes header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 9px 11px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.frete-resultado-volumes header strong {
  color: #0f172a;
  font-size: 13px;
}

.frete-resultado-volumes header span {
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.frete-resultado-volumes [data-result-volume-list] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 9px;
}

.frete-resultado-volume {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.frete-resultado-volume__index {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 7px;
  background: #0f172a;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.frete-resultado-volume strong {
  display: block;
  overflow: hidden;
  color: #0f172a;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.frete-resultado-volume span:not(.frete-resultado-volume__index) {
  display: block;
  margin-top: 2px;
  color: #475569;
  font-size: 12px;
}

.frete-resultado-volume .frete-resultado-volume__index {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  color: #ffffff;
}

.frete-pontos-coleta-link {
  border: 0;
  background: transparent;
  color: #0b4ea2;
  display: none;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 4px 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.frete-opcao-card.is-selected .frete-pontos-coleta-link {
  display: inline-flex;
}

.frete-pontos-coleta-link i {
  color: #16a34a;
  font-size: 14px;
}

.frete-pontos-coleta-link:hover,
.frete-pontos-coleta-link:focus {
  color: #063f86;
  outline: none;
}

.frete-opcoes-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.page-home .home-calculo-frete .frete-opcoes-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.frete-opcao-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
  min-width: 0;
  transition: 0.15s ease;
}

.frete-opcao-card.is-selected {
  border-color: #16a34a;
  background: #f0fdf4;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.14);
}

.frete-opcao-card input {
  width: 15px;
  height: 15px;
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
}

.frete-opcao-card img {
  width: 55px;
  height: auto;
  flex-shrink: 0;
}

.frete-opcao-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
}

.frete-opcao-servico {
  display: block;
  font-size: 1.1em;
  color: #111;
  overflow: hidden;
  text-overflow: ellipsis;
}

.frete-opcao-preco {
  font-size: 1.1em;
  color: #111;
  white-space: nowrap;
}

.frete-opcao-card.is-selected .frete-opcao-preco {
  color: #15803d;
  font-weight: 700;
}

.frete-opcao-prazo {
  font-size: 1.1em;
  color: #555;
  white-space: nowrap;
}

.frete-opcao-card input:checked + img {
  filter: drop-shadow(0 0 4px rgba(11, 78, 162, 0.4));
}

.frete-opcao-loading {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
}

.frete-loading-counter {
  min-width: 30px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 5px 7px;
  text-align: center;
}

.frete-opcao-unavailable {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 14px;
  font-weight: 800;
  padding: 10px 12px;
}

.frete-unavailable-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #f97316;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
  flex-shrink: 0;
}

.frete-unavailable-provider {
  color: #111827;
  white-space: nowrap;
}

.frete-unavailable-message {
  overflow: hidden;
  color: #9a3412;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.frete-loading-dots {
  display: inline-flex;
  gap: 4px;
}

.frete-loading-dots i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #ffd400;
  animation: freteDotPulse 1s ease-in-out infinite;
}

.frete-loading-dots i:nth-child(2) {
  animation-delay: 0.15s;
}

.frete-loading-dots i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes freteSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes freteDotPulse {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.btn-imprimir-etiqueta-dev {
  width: 100%;
  min-height: 50px;
  border-radius: 8px;
  padding: 14px 0;
}

@media (max-width: 1024px) {
  .home-calculo-frete {
    flex-direction: column;
  }

  .frete-row {
    flex-direction: column;
  }

  .frete-volumes__head,
  .frete-volumes__inputs,
  .frete-volumes__controls,
  .frete-volume-item {
    grid-template-columns: 1fr;
  }

  .frete-volumes__head {
    align-items: flex-start;
  }

  .frete-volumes__summary,
  .frete-volume-item__actions {
    justify-content: flex-start;
  }

  .frete-opcoes-grid {
    grid-template-columns: 1fr;
  }

  .frete-resultado-medidas.medidas-5 {
    grid-template-columns: 1fr;
  }

  .frete-resultado-volumes [data-result-volume-list] {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-home .home-calculo-frete .frete-opcoes-grid {
    grid-template-columns: 1fr;
  }

  .frete-row {
    flex-direction: column;
  }

  .frete-field {
    width: 100%;
  }
}

/* Comandos principais com area de clique e leitura maiores. */
.page-home .navbar .btn-cta,
.page-home .navbar .btn-entrar {
  min-height: 40px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 700;
}

.bt-novo-home-frete,
.btn-imprimir-etiqueta-dev {
  min-height: 56px;
  font-size: 16px;
  font-weight: 700;
}

@media (max-width: 720px) {
  .page-home .navbar .btn-cta,
  .page-home .navbar .btn-entrar,
  .bt-novo-home-frete,
  .btn-imprimir-etiqueta-dev {
    min-height: 50px;
    font-size: 15px;
  }
}

.logradouro-search-panel {
  display: grid;
  gap: 12px;
  width: 100%;
  text-align: left;
}

.logradouro-search-panel__alert {
  border: 1px solid #fde68a;
  border-left: 4px solid #f6c400;
  border-radius: 8px;
  background: #fffbeb;
  color: #713f12;
  padding: 12px 14px;
  line-height: 1.45;
  font-weight: 700;
}

.logradouro-search-panel__head {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid #d7e3f3;
  border-radius: 8px;
  background: #f8fbff;
}

.logradouro-search-panel__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e8f7f1;
  color: #059669;
}

.logradouro-search-panel__head strong {
  display: block;
  color: #0f172a;
  font-size: 16px;
}

.logradouro-search-panel__head p {
  margin: 4px 0 0;
  color: #0f2a55;
  line-height: 1.45;
}

.logradouro-search-panel__status {
  border: 1px solid #d7e3f3;
  border-radius: 8px;
  background: #f8fbff;
  color: #0f2a55;
  padding: 10px 12px;
  line-height: 1.4;
}

.logradouro-search-panel__status:empty {
  display: none;
}

.logradouro-search-panel__status.is-error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.logradouro-search-panel__field {
  display: grid;
  gap: 6px;
}

.logradouro-search-panel__field span {
  color: #334155;
  font-weight: 800;
}

.logradouro-search-panel__field input {
  height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 15px;
}

.logradouro-search-panel__field input:focus {
  outline: 0;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
}

.logradouro-search-panel__list {
  display: grid;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
  scrollbar-width: auto;
}

.logradouro-search-panel__item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 1px solid #d7e3f3;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.logradouro-search-panel__item:hover {
  border-color: #f6c400;
  background: #fffdf2;
}

.logradouro-search-panel__item strong,
.logradouro-search-panel__item span {
  display: block;
}

.logradouro-search-panel__item span {
  margin-top: 4px;
  color: #475569;
}

.logradouro-search-panel__cep {
  border-radius: 999px;
  background: #eff6ff;
  color: #0b4ea2;
  padding: 7px 10px;
  font-weight: 800;
  white-space: nowrap;
}

.home-calculo-frete #btn-calcular-frete.ui-button,
.frete-resultado-actions #btn-imprimir-etiqueta-dev.ui-button {
  font-size: 18px !important;
  font-weight: 600 !important;
  letter-spacing: 0;
}
