:root {
  --ctwpml-geo-ml-blue: #3483fa;
  --ctwpml-geo-text-dark: #333333;
  --ctwpml-geo-text-gray: #666666;
  --ctwpml-geo-white: #ffffff;
  --ctwpml-geo-overlay: rgba(0, 0, 0, 0.6);
}


#ctwpml-geo-modal-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--ctwpml-geo-overlay);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  padding: 16px;
  box-sizing: border-box; /* evita “shift” lateral em temas que mudam box-sizing global */
}

#ctwpml-geo-modal {
  background: var(--ctwpml-geo-white);
  width: 100%;
  max-width: 420px;
  padding: 28px 22px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  box-sizing: border-box;
  margin-left: auto; /* reforço de centralização */
  margin-right: auto; /* reforço de centralização */
}

#ctwpml-geo-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ctwpml-geo-text-dark);
  margin: 0 0 18px 0;
  line-height: 1.25;
}

.ctwpml-geo-benefits {
  text-align: left;
  margin: 0 0 22px 0;
}

.ctwpml-geo-benefit {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 14px 0;
}

.ctwpml-geo-benefit-icon {
  font-size: 20px;
  margin-top: 1px;
}

.ctwpml-geo-benefit-text {
  font-size: 15px;
  color: var(--ctwpml-geo-text-dark);
  line-height: 1.45;
}

#ctwpml-geo-allow {
  width: 100%;
  background: var(--ctwpml-geo-ml-blue);
  color: #fff;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

#ctwpml-geo-later {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 12px;
  margin-bottom: 14px;
  background: none;
  border: none;
  color: var(--ctwpml-geo-ml-blue);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

#ctwpml-geo-fineprint {
  display: block;
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ctwpml-geo-text-gray);
  text-align: center;
}

#ctwpml-geo-status {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ctwpml-geo-text-gray);
  min-height: 18px;
}

#ctwpml-geo-allow[disabled],
#ctwpml-geo-later[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Animação loading pontos */
.ctwpml-geo-loading-dots::after {
  content: '';
  animation: ctwpml-dots 1.5s infinite;
}

@keyframes ctwpml-dots {
  0% {
    content: '';
  }

  25% {
    content: '•';
  }

  50% {
    content: '••';
  }

  75% {
    content: '•••';
  }

  100% {
    content: '';
  }
}

/* Fallback para navegadores que não suportam animação de content */
.ctwpml-geo-loading-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ctwpml-geo-loading-text .ctwpml-dots {
  display: inline-block;
  width: 20px;
  text-align: left;
}

.ctwpml-geo-loading-text .ctwpml-dots::after {
  content: '';
  animation: ctwpml-dots-alt 1.2s infinite step-end;
}

@keyframes ctwpml-dots-alt {
  0% {
    content: '•';
  }

  33% {
    content: '••';
  }

  66% {
    content: '•••';
  }
}

/* ========================================================= */
/* CEP manual - modal e shortcode */
/* ========================================================= */

#ctwpml-cep-modal-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--ctwpml-geo-overlay);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  padding: 16px;
  box-sizing: border-box;
}

#ctwpml-cep-modal {
  background: var(--ctwpml-geo-white);
  width: 100%;
  max-width: 520px;
  padding: 28px 22px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  box-sizing: border-box;
}

#ctwpml-cep-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ctwpml-geo-text-dark);
  margin: 0 0 18px 0;
  line-height: 1.25;
}

.ctwpml-cep-form {
  width: 100%;
}

.ctwpml-cep-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.ctwpml-cep-input {
  flex: 1;
  height: 44px;
  padding: 10px 12px;
  border: 1px solid #bbbbbb;
  border-radius: 5px;
  font-size: 15px;
  outline: none;
}

.ctwpml-cep-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  border: none;
  border-radius: 5px;
  background: var(--ctwpml-geo-ml-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

/* Elementor override (shortcode) - aplicar somente no shortcode */
.ctwpml-cep-shortcode .ctwpml-cep-button {
  background: var(--ctwpml-geo-ml-blue) !important;
  color: #fff !important;
}

.ctwpml-cep-button.is-disabled,
.ctwpml-cep-button[disabled] {
  background: #9aa3af;
  cursor: not-allowed;
}

.ctwpml-cep-shortcode .ctwpml-cep-button.is-disabled,
.ctwpml-cep-shortcode .ctwpml-cep-button[disabled] {
  background: #9aa3af !important;
  color: #fff !important;
}

.ctwpml-cep-button-icon img {
  width: 18px;
  height: 18px;
  display: block;
}

.ctwpml-cep-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ctwpml-cep-spin 0.8s linear infinite;
}

.ctwpml-cep-button.is-loading .ctwpml-cep-spinner {
  display: inline-block;
}

.ctwpml-cep-shortcode .ctwpml-cep-button.is-loading {
  background: var(--ctwpml-geo-ml-blue) !important;
  color: #fff !important;
}

.ctwpml-cep-error {
  margin-top: 10px;
  color: #b42318;
  font-size: 13px;
  display: none;
}

.ctwpml-cep-results {
  margin-top: 12px;
  display: none;
  text-align: left;
  font-size: 14px;
  color: var(--ctwpml-geo-text-dark);
}

.ctwpml-cep-table-wrapper {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.7);
}

.ctwpml-cep-table {
  width: 100%;
  border-collapse: collapse;
}

.ctwpml-cep-table th {
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  color: var(--ctwpml-geo-text-dark);
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.03);
}

.ctwpml-cep-table td {
  padding: 10px 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 13px;
  color: var(--ctwpml-geo-text-dark);
}

.ctwpml-cep-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ctwpml-cep-method {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.7);
}

.ctwpml-cep-method-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ctwpml-cep-method-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--ctwpml-geo-text-dark);
}

.ctwpml-cep-method-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--ctwpml-geo-text-dark);
  white-space: nowrap;
}

.ctwpml-cep-method-bottom {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ctwpml-geo-text-gray);
}

.ctwpml-cep-result {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.ctwpml-cep-result strong {
  font-weight: 700;
}

.ctwpml-cep-result-empty {
  font-size: 13px;
  color: var(--ctwpml-geo-text-gray);
}

.ctwpml-cep-fallback {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--ctwpml-geo-ml-blue);
  text-decoration: underline;
}

@keyframes ctwpml-cep-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 520px) {
  .ctwpml-cep-row {
    flex-direction: row;
    align-items: center;
  }
  .ctwpml-cep-button {
    width: auto;
    justify-content: center;
    white-space: nowrap;
  }
}