/* Loja Core · PDP — modal "Formas de entrega" (inc/pdp-ship-modal.php). Tokens --mp-* da PDP v2. */

.pdv-dialog--frete { max-width: 560px; }
.pdv .pdv-shiplink { font-size: 15px; min-height: 28px; display: inline-flex; align-items: center; align-self: flex-start; }

.pdv-ship { padding: 16px 24px 24px; display: flex; flex-direction: column; gap: 16px; }

/* CEP */
.pdv-ship__cep { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px 10px; }
.pdv-ship__cep label { font-size: 13px; font-weight: 600; color: var(--mp-ink-2); }
.pdv .pdv-ship__cep input {
  height: 40px; min-width: 0; padding: 0 12px; border: 0; border-radius: 6px; background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); font-size: 15px; font-variant-numeric: tabular-nums;
}
.pdv .pdv-ship__cep input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--mp-blue); }
.pdv .pdv-ship__cep button {
  height: 40px; padding: 0 16px; border: 0; border-radius: 6px; background: var(--mp-blue-soft); color: var(--mp-blue);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition-property: background-color, scale; transition-duration: .15s; transition-timing-function: var(--mp-ease);
}
.pdv .pdv-ship__cep button:hover { background: var(--mp-blue-soft-hover); }
.pdv .pdv-ship__cep button:active { scale: .96; }

.pdv-ship__body { display: flex; flex-direction: column; gap: 14px; min-height: 64px; transition: opacity .15s var(--mp-ease); }
.pdv-ship__body.is-loading { opacity: .45; pointer-events: none; }
.pdv-ship__hint { margin: 0; font-size: 14px; color: var(--mp-ink-2); text-wrap: pretty; }

.pdv-ship__for { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 13px; color: var(--mp-ink-2); }
.pdv-ship__for strong { color: var(--mp-ink); font-weight: 600; }
.pdv-ship__qty { padding: 2px 8px; border-radius: 999px; background: var(--mp-surface); font-size: 12px; }

/* Opções */
.pdv-ship__opts { display: flex; flex-direction: column; gap: 8px; }
.pdv-ship__opt {
  display: grid; grid-template-columns: 36px 1fr auto; align-items: start; gap: 12px;
  padding: 12px 14px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--mp-border);
}
.pdv-ship__opt.is-best { box-shadow: inset 0 0 0 1.5px rgba(0, 166, 80, .55); background: #FBFEFC; }
.pdv-ship__ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--mp-surface); color: var(--mp-ink-2); }
.pdv-ship__opt.is-best .pdv-ship__ic { background: var(--mp-green-bg); color: #00833F; }
.pdv-ship__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pdv-ship__name { font-size: 15px; font-weight: 600; color: var(--mp-ink); }
.pdv-ship__badge { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: var(--mp-blue-soft); color: var(--mp-blue-hover); font-size: 11px; font-weight: 600; vertical-align: 1px; }
.pdv-ship__when { font-size: 13px; color: #00833F; font-weight: 600; }
.pdv-ship__note { font-size: 12.5px; color: var(--mp-ink-2); line-height: 1.4; text-wrap: pretty; }
.pdv-ship__price { font-size: 15px; font-weight: 700; color: var(--mp-ink); white-space: nowrap; font-variant-numeric: tabular-nums; padding-top: 1px; }
.pdv-ship__price.is-free { color: #00833F; }

/* Composição */
.pdv-ship__comp { border-radius: 10px; background: var(--mp-surface); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.pdv-ship__comp-h { font-size: 13px; font-weight: 700; color: var(--mp-ink); }
.pdv-ship__comp table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pdv-ship__comp td { padding: 6px 0; border-top: 1px solid rgba(0, 0, 0, .07); vertical-align: middle; }
.pdv-ship__comp tr:first-child td { border-top: 0; }
.pdv-ship__comp td.r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; padding-left: 12px; }
.pdv-ship__comp tr.is-sub td { color: var(--mp-ink-2); }
.pdv-ship__comp tr.is-disc td { color: #00833F; }
.pdv-ship__comp tr.is-total td { font-weight: 700; font-size: 14px; color: var(--mp-ink); border-top: 1px solid rgba(0, 0, 0, .18); }
.pdv-ship__comp tr.is-here td { font-weight: 700; color: var(--mp-ink); }
.pdv-ship__you { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--mp-green-bg); color: #00833F; font-size: 11px; }
.pdv-ship__save { margin: 0; font-size: 13px; color: #00833F; font-weight: 600; text-wrap: pretty; }

/* Etiquetas de taxa/imposto */
.pdv-ship__tag {
  display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 4px; font-size: 10.5px; font-weight: 700;
  line-height: 17px; letter-spacing: .02em; vertical-align: 1px; white-space: nowrap;
}
.pdv-ship__tag--frete    { background: #EEF1F5; color: #3F4A5A; }
.pdv-ship__tag--taxa     { background: #FFF3E0; color: #9A4A00; }
.pdv-ship__tag--seguro   { background: #E8F0FE; color: #1F57AD; }
.pdv-ship__tag--pedagio  { background: #FFF3E0; color: #9A4A00; }
.pdv-ship__tag--imposto  { background: #FDECEE; color: #A8182B; margin-left: 0; margin-right: 6px; }
.pdv-ship__tag--desconto { background: var(--mp-green-bg); color: #00833F; }

.pdv-ship__fine { margin: 0; font-size: 12.5px; color: var(--mp-ink-2); line-height: 1.45; text-wrap: pretty; }
.pdv-ship__foot { margin: 0; padding-top: 12px; border-top: 1px solid var(--mp-border); font-size: 12.5px; color: var(--mp-ink-2); line-height: 1.45; text-wrap: pretty; }
.pdv-ship__foot a { font-weight: 600; }

@media (max-width: 480px) {
  .pdv-ship { padding: 14px 16px 20px; }
  .pdv-ship__cep { grid-template-columns: 1fr auto; }
  .pdv-ship__cep label { grid-column: 1 / -1; }
  .pdv-ship__opt { grid-template-columns: 30px 1fr auto; gap: 10px; padding: 12px; }
  .pdv-ship__ic { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) { .pdv-ship__body { transition: none; } }
