/* ── Meu Carrinho (Convert) — Entrega por CEP ───────────────────────────── */
/* Sem margem própria: o espaçamento entre blocos vem do rodapé do carrinho (gap). */
.cdaf-mc-cep { margin: 0; font-size: 13px; }
.cdaf-mc-cep *, .cdaf-mc-cep *::before, .cdaf-mc-cep *::after { box-sizing: border-box; }

.cdaf-mc-cep-row,
.cdaf-mc-cep-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 0;
}
.cdaf-mc-cep-label {
    min-width: 0;
    overflow: hidden;
    color: #6b7280;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.cdaf-mc-cep-method { color: #374151; }
.cdaf-mc-cep-label-strong { font-weight: 700; color: #1f2937; }

.cdaf-mc-cep .cdaf-mc-cep-toggle {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: #374151;
    font: inherit;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
}
/* Com o valor do frete escolhido: sem sublinhado (continua clicável) */
.cdaf-mc-cep .cdaf-mc-cep-toggle.has-value { text-decoration: none !important; border-bottom: 0 !important; box-shadow: none !important; }
.cdaf-mc-cep .cdaf-mc-cep-toggle:hover { color: #111827; background: none; }

.cdaf-mc-cep-box { padding: 4px 0 6px; }
.cdaf-mc-cep-box[hidden] { display: none !important; }

.cdaf-mc-cep-form {
    display: flex;
    align-items: stretch;
    height: 38px;
    margin: 0;
    border: 1px solid #d9dde3;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
}
.cdaf-mc-cep-form:focus-within { border-color: #9ca3af; }
.cdaf-mc-cep.is-error .cdaf-mc-cep-form { border-color: #dc2626; }

.cdaf-mc-cep .cdaf-mc-cep-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0 10px;
    border: 0 !important;
    border-radius: 0;
    background: transparent;
    box-shadow: none !important;
    color: #1f2937;
    font-size: 13px;
    outline: none;
}
/* Sem botão: calcula sozinho ao completar o CEP. O spinner aparece dentro
   do campo, à direita, enquanto consulta. */
.cdaf-mc-cep-form { position: relative; }
.cdaf-mc-cep-spinner {
    display: none;
    position: absolute;
    top: 50%; right: 12px;
    width: 14px; height: 14px;
    margin-top: -7px;
    border: 2px solid #9ca3af;
    border-right-color: transparent;
    border-radius: 50%;
    animation: cdaf-mc-cep-spin .7s linear infinite;
    pointer-events: none;
}
.cdaf-mc-cep.is-loading .cdaf-mc-cep-spinner  { display: block; }
.cdaf-mc-cep.is-loading .cdaf-mc-cep-result   { opacity: .5; }
@keyframes cdaf-mc-cep-spin { to { transform: rotate(360deg); } }

.cdaf-mc-cep-result:empty { display: none; }
.cdaf-mc-cep-result { margin-top: 6px; }
.cdaf-mc-cep-addr { margin-bottom: 6px; font-size: 11px; color: #6b7280; }

.cdaf-mc-cep-list { list-style: none; margin: 0; padding: 0; }
.cdaf-mc-cep-list { display: flex; flex-direction: column; gap: 6px; }
.cdaf-mc-cep-rate {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 9px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background: #fff;
    line-height: 1.3;
    cursor: pointer;
    transition: border-color .15s;
}
.cdaf-mc-cep-rate:hover       { border-color: #c4c9d1; }
.cdaf-mc-cep-rate.is-selected { border-color: #1f2937; }
.cdaf-mc-cep-rate:focus-visible { outline: 2px solid #9ca3af; outline-offset: 2px; }

.cdaf-mc-cep-radio {
    flex: 0 0 auto;
    width: 14px; height: 14px;
    border: 1.5px solid #c4c9d1;
    border-radius: 50%;
    position: relative;
}
.cdaf-mc-cep-rate.is-selected .cdaf-mc-cep-radio { border-color: #1f2937; }
.cdaf-mc-cep-rate.is-selected .cdaf-mc-cep-radio::after {
    content: "";
    position: absolute;
    inset: 2.5px;
    border-radius: 50%;
    background: #1f2937;
}
.cdaf-mc-cep-info { flex: 1 1 auto; min-width: 0; color: #1f2937; }
.cdaf-mc-cep-days { color: #6b7280; }
.cdaf-mc-cep-days::before { content: " · "; }
.cdaf-mc-cep-price { flex: 0 0 auto; font-weight: 600; color: #1f2937; white-space: nowrap; }
.cdaf-mc-cep-price.is-free { color: #16a34a; }

.cdaf-mc-cep-msg { font-size: 12px; color: #6b7280; }
.cdaf-mc-cep-msg.is-error { color: #b91c1c; }

.cdaf-mc-cep-total {
    margin-top: 2px;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}
