/* Plantilla de formulario COD "02 · COD Health" — 3 pasos + ofertas */

.wp-cod-02-wrapper {
    padding: 22px;
    border-radius: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wp-cod-02-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-right: 24px;
}

.wp-cod-02-emoji {
    font-size: 28px;
    flex-shrink: 0;
}

.wp-cod-02-header div {
    display: flex;
    flex-direction: column;
}

.wp-cod-02-header strong {
    font-size: 15px;
    color: #111;
}

.wp-cod-02-header span {
    font-size: 12px;
    color: #ef6c00;
    font-weight: 700;
}

.wp-cod-02-countdown {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff3e0;
    border: 1px solid #ffcc80;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12.5px;
    color: #7a4a00;
    margin-bottom: 16px;
}

.wp-cod-02-countdown-value {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

/* --- Tarjetas de oferta --- */
.wp-cod-02-tiers {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.wp-cod-02-tier-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid #e4e6ea;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: border-color 0.15s;
}

.wp-cod-02-tier-card.is-selected {
    border-color: #ef6c00;
    background: #fff8f0;
}

.wp-cod-02-tier-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wp-cod-02-tier-qty {
    font-weight: 800;
    font-size: 14px;
    color: #222;
}

.wp-cod-02-tier-badge {
    display: inline-block;
    width: fit-content;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #ef6c00;
    border-radius: 20px;
    padding: 2px 8px;
}

.wp-cod-02-tier-price {
    text-align: right;
    display: flex;
    flex-direction: column;
}

.wp-cod-02-tier-strike {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.wp-cod-02-tier-final {
    font-size: 16px;
    font-weight: 800;
    color: #111;
}

/* --- Envío --- */
.wp-cod-02-shipping {
    border: 1px solid #e4e6ea;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 18px;
}

.wp-cod-02-shipping-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 6px;
}

.wp-cod-02-shipping-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    justify-content: space-between;
}

/* --- Pasos --- */
.wp-cod-02-step {
    font-size: 14px;
    font-weight: 800;
    color: #111;
    margin: 18px 0 10px 0;
    padding-bottom: 6px;
    border-bottom: 2px solid #f0f0f0;
}

.wp-cod-02-group label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #333;
}

.wp-cod-02-group-input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #d8dadf;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 14px;
}

.wp-cod-02-group-input-wrap:focus-within {
    border-color: #ef6c00;
}

.wp-cod-02-group-input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    flex-shrink: 0;
    color: #9aa0a6;
}

.wp-cod-02-group-input-wrap input,
.wp-cod-02-group-input-wrap select {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 10px 10px 0;
    font-size: 14px;
    background: transparent;
    min-width: 0;
}

/* --- Ejemplo de dirección --- */
.wp-cod-02-address-example {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.wp-cod-02-example {
    flex: 1;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 11.5px;
}

.wp-cod-02-example span {
    display: block;
    font-weight: 800;
    margin-bottom: 3px;
}

.wp-cod-02-example-ok {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #2e7d32;
}

.wp-cod-02-example-bad {
    background: #ffebee;
    border: 1px solid #ef9a9a;
    color: #c62828;
}

/* --- Advertencia --- */
.wp-cod-02-warning {
    font-size: 12.5px;
    text-align: center;
    color: #7a5b00;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 16px;
}

/* --- Resumen --- */
.wp-cod-02-summary {
    background: #f4f5f7;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 12px;
}

.wp-cod-02-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13.5px;
    color: #555;
    padding: 3px 0;
}

.wp-cod-02-total-row {
    font-weight: 800;
    font-size: 16px;
    color: #111;
    border-top: 1px solid #e0e2e6;
    margin-top: 4px;
    padding-top: 8px;
}

/* --- Insignias de confianza --- */
.wp-cod-02-trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 14px;
}

.wp-cod-02-trust-badges span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f4f5f7;
    border-radius: 20px;
    padding: 5px 10px;
    font-size: 11px;
    color: #444;
}

/* --- Adicionales --- */
.wp-cod-02-addon {
    margin-bottom: 10px;
}

.wp-cod-02-addon-alt {
    border-color: #ffcc80 !important;
    background: #fff8f0 !important;
    color: #7a4a00 !important;
}

.wp-cod-02-addon-alt input {
    accent-color: #ef6c00 !important;
}

/* --- CTA y banner de pago anticipado --- */
.wp-cod-02-cta {
    border-radius: 10px !important;
    font-size: 16px !important;
    text-transform: uppercase;
}

.wp-cod-02-prepay {
    text-align: center;
    background: #fffaf3;
    border: 1.5px dashed #ffb74d;
    border-radius: 10px;
    padding: 12px;
    margin-top: 12px;
    font-size: 13px;
    color: #7a4a00;
}

.wp-cod-02-pay-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}

.wp-cod-02-pay-pills span {
    background: #fff;
    border: 1px solid #e0c199;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 11px;
}

.wp-cod-02-prepay-btn {
    width: 100%;
    border: none;
    border-radius: 8px;
    background: #263238;
    color: #fff;
    font-weight: 700;
    padding: 10px;
    cursor: pointer;
}

.wp-cod-02-prepay-btn:hover {
    background: #37474f;
}

.wp-cod-02-wrapper .wp-cod-image-group img {
    max-width: 100%;
    border-radius: 8px;
}

@media (max-width: 480px) {
    .wp-cod-02-wrapper {
        padding: 16px;
    }
    .wp-cod-02-address-example {
        flex-direction: column;
    }
}
