/* =====================================================
   FRETE / CEP - PREMIUM RESPONSIVO COMPLETO
   ===================================================== */

:root {
  --cep-gold: #b8871a;
  --cep-gold-2: #d9a326;
  --cep-gold-3: #f3cd6b;
  --cep-gold-soft: rgba(184, 135, 26, 0.16);
  --cep-gold-border: rgba(217, 163, 38, 0.68);
  --cep-bg: #0a0a0a;
  --cep-bg-2: #111111;
  --cep-white: #ffffff;
  --cep-soft: rgba(255, 255, 255, 0.70);
}

/* bloco geral */
.infixs-correios-automatico-calculator {
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 16px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* título */
.infixs-correios-automatico-calculator-title {
  position: relative !important;
  display: inline-block !important;
  margin-bottom: 18px !important;
  font-size: clamp(18px, 2vw, 22px) !important;
  font-weight: 800 !important;
  letter-spacing: 0.3px !important;
  line-height: 1.15 !important;
  background: linear-gradient(180deg, #f7d77f 0%, #d9a326 45%, #b8871a 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: 0 0 16px rgba(184, 135, 26, 0.18) !important;
}

.infixs-correios-automatico-calculator-title::after {
  content: "" !important;
  display: block !important;
  width: 72px !important;
  height: 2px !important;
  margin-top: 8px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, transparent 0%, var(--cep-gold-2) 45%, transparent 100%) !important;
}

/* caixa do cálculo */
.infixs-correios-automatico-calculate-box {
  width: 100% !important;
  max-width: 520px !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

/* wrapper do input */
.infixs-correios-automatico-input-text {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  max-width: 520px !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

/* ícone esquerdo */
.infixs-correios-automatico-input-text-prepend {
  position: absolute !important;
  left: 18px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 22px !important;
  height: 22px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 3 !important;
  pointer-events: none !important;
}

.infixs-correios-automatico-input-text-prepend svg {
  width: 22px !important;
  height: 22px !important;
  color: var(--cep-gold-2) !important;
  fill: currentColor !important;
  filter: drop-shadow(0 0 8px rgba(217, 163, 38, 0.25)) !important;
}

/* loading/spinner direito */
.infixs-correios-automatico-input-text-append {
  position: absolute !important;
  right: 16px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 3 !important;
}

/* campo CEP */
#infixs-correios-automatico-input-postcode {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 58px !important;
  min-height: 58px !important;
  padding: 0 44px 0 58px !important;

  border: 2px solid var(--cep-gold-border) !important;
  border-radius: 999px !important;

  background:
    linear-gradient(180deg, rgba(255,255,255,0.035) 0%, rgba(255,255,255,0.015) 100%),
    linear-gradient(180deg, var(--cep-bg) 0%, var(--cep-bg-2) 100%) !important;

  color: var(--cep-white) !important;
  font-size: clamp(14px, 1.6vw, 16px) !important;
  font-weight: 500 !important;
  letter-spacing: 0.1px !important;
  line-height: 58px !important;
  box-sizing: border-box !important;
  outline: none !important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 0 0 1px rgba(184, 135, 26, 0.16),
    0 0 14px rgba(184, 135, 26, 0.18) !important;

  transition: all 0.25s ease !important;
  caret-color: #fff !important;
  text-overflow: clip !important;
  overflow: hidden !important;
}

/* placeholder */
#infixs-correios-automatico-input-postcode::placeholder {
  color: var(--cep-soft) !important;
  opacity: 1 !important;
  font-size: clamp(13px, 1.5vw, 15px) !important;
  font-weight: 400 !important;
  white-space: nowrap !important;
}

/* hover */
#infixs-correios-automatico-input-postcode:hover {
  border-color: rgba(243, 205, 107, 0.90) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.07),
    0 0 0 1px rgba(217, 163, 38, 0.22),
    0 0 20px rgba(184, 135, 26, 0.24) !important;
}

/* foco */
#infixs-correios-automatico-input-postcode:focus {
  border-color: rgba(243, 205, 107, 1) !important;
  box-shadow:
    0 0 0 4px var(--cep-gold-soft),
    0 0 26px rgba(217, 163, 38, 0.30),
    inset 0 1px 0 rgba(255,255,255,0.08) !important;
}

/* link "não sei meu CEP" */
.infixs-correios-automatico-calculate-find-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: auto !important;
  max-width: 100% !important;
  margin-top: 12px !important;
  padding: 8px 14px !important;
  border: 1px solid rgba(184, 135, 26, 0.34) !important;
  border-radius: 999px !important;
  background: rgba(184, 135, 26, 0.08) !important;
  color: var(--cep-gold-2) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  transition: all 0.22s ease !important;
  box-sizing: border-box !important;
}

.infixs-correios-automatico-calculate-find-link:hover {
  border-color: rgba(217, 163, 38, 0.55) !important;
  background: rgba(184, 135, 26, 0.14) !important;
  color: var(--cep-gold-3) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 18px rgba(184, 135, 26, 0.12) !important;
}

/* resultados */
#infixs-correios-automatico-calculate-results {
  width: 100% !important;
  max-width: 720px !important;
  margin-top: 16px !important;
  padding: 14px !important;
  border: 1px solid rgba(184, 135, 26, 0.30) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%),
    linear-gradient(180deg, #0e0e0e 0%, #151515 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 10px 28px rgba(0,0,0,0.24) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

/* textos internos */
#infixs-correios-automatico-calculate-results,
#infixs-correios-automatico-calculate-results * {
  color: #fff !important;
  box-sizing: border-box !important;
}

#infixs-correios-automatico-calculate-results table {
  width: 100% !important;
  border-collapse: collapse !important;
}

#infixs-correios-automatico-calculate-results tr:not(:last-child) td,
#infixs-correios-automatico-calculate-results tr:not(:last-child) th,
#infixs-correios-automatico-calculate-results li:not(:last-child) {
  border-bottom: 1px solid rgba(255,255,255,0.07) !important;
}

#infixs-correios-automatico-calculate-results td,
#infixs-correios-automatico-calculate-results th,
#infixs-correios-automatico-calculate-results li,
#infixs-correios-automatico-calculate-results p,
#infixs-correios-automatico-calculate-results div,
#infixs-correios-automatico-calculate-results span {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  font-size: 14px !important;
}

#infixs-correios-automatico-calculate-results strong,
#infixs-correios-automatico-calculate-results b {
  color: var(--cep-gold-3) !important;
  font-weight: 800 !important;
}

/* tablets */
@media (max-width: 768px) {
  .infixs-correios-automatico-calculate-box,
  .infixs-correios-automatico-input-text {
    max-width: 100% !important;
  }

  #infixs-correios-automatico-input-postcode {
    height: 54px !important;
    min-height: 54px !important;
    line-height: 54px !important;
    padding-left: 54px !important;
    padding-right: 40px !important;
  }

  .infixs-correios-automatico-input-text-prepend {
    left: 16px !important;
    width: 20px !important;
    height: 20px !important;
  }

  .infixs-correios-automatico-input-text-prepend svg {
    width: 20px !important;
    height: 20px !important;
  }

  .infixs-correios-automatico-calculate-find-link {
    font-size: 12px !important;
    padding: 7px 12px !important;
  }

  #infixs-correios-automatico-calculate-results {
    max-width: 100% !important;
    padding: 12px !important;
    border-radius: 16px !important;
  }
}

/* celulares pequenos */
@media (max-width: 420px) {
  .infixs-correios-automatico-calculator-title {
    font-size: 18px !important;
  }

  #infixs-correios-automatico-input-postcode {
    height: 52px !important;
    min-height: 52px !important;
    line-height: 52px !important;
    padding-left: 48px !important;
    padding-right: 34px !important;
    font-size: 14px !important;
  }

  #infixs-correios-automatico-input-postcode::placeholder {
    font-size: 13px !important;
  }

  .infixs-correios-automatico-input-text-prepend {
    left: 15px !important;
    width: 18px !important;
    height: 18px !important;
  }

  .infixs-correios-automatico-input-text-prepend svg {
    width: 18px !important;
    height: 18px !important;
  }
}

/* celulares muito estreitos */
@media (max-width: 340px) {
  #infixs-correios-automatico-input-postcode {
    padding-left: 44px !important;
    padding-right: 30px !important;
  }

  #infixs-correios-automatico-input-postcode::placeholder {
    font-size: 12px !important;
  }
}