/* Plantilla de formulario COD "04 · COD Full" — versión oscura, todo incluido */

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

.wp-cod-04-top-bar {
    background: #0f172a;
    color: #ffd166;
    text-align: center;
    font-size: 12.5px;
    font-weight: 700;
    padding: 10px 30px 10px 12px;
}

.wp-cod-04-close {
    top: 10px !important;
    color: #fff !important;
}

.wp-cod-04-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 20px 12px 20px;
    text-align: center;
}

.wp-cod-04-secure-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #e6f9ee;
    color: #00873e;
    font-size: 11px;
    font-weight: 800;
    border-radius: 20px;
    padding: 4px 10px;
}

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

.wp-cod-04-subtitle {
    font-size: 12px;
    color: #ef6c00;
    font-weight: 700;
}

.wp-cod-04-feature-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
}

.wp-cod-04-feature-row span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    color: #334155;
    font-size: 10.5px;
    font-weight: 600;
    border-radius: 20px;
    padding: 4px 9px;
}

.wp-cod-04-form {
    padding: 0 22px;
}

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

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

.wp-cod-04-tier-card.is-selected {
    border-color: #00c853;
    background: #effef4;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* --- Advertencia --- */
.wp-cod-04-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;
}

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

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

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

.wp-cod-04-group-input-wrap:focus-within {
    border-color: #00c853;
}

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

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

/* --- Resumen --- */
.wp-cod-04-summary {
    background: #0f172a;
    color: #fff;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 12px;
}

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

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

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

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

.wp-cod-04-addon {
    margin-bottom: 12px;
}

/* --- Banner de pago anticipado --- */
.wp-cod-04-prepay {
    text-align: center;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 14px;
    font-size: 13px;
}

.wp-cod-04-prepay strong {
    color: #ffd166;
}

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

.wp-cod-04-pay-pills span {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 11px;
}

.wp-cod-04-prepay-btn {
    width: 100%;
    border: none;
    border-radius: 8px;
    background: #ffd166;
    color: #1e293b;
    font-weight: 800;
    padding: 10px;
    cursor: pointer;
}

.wp-cod-04-prepay-btn:hover {
    background: #ffca4a;
}

.wp-cod-04-pay-pills-alt {
    margin: 10px 0 0 0;
}

.wp-cod-04-pay-pills-alt span {
    background: rgba(255,255,255,0.06);
}

.wp-cod-04-cta {
    border-radius: 10px !important;
    font-size: 16px !important;
    text-transform: uppercase;
}

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

@media (max-width: 480px) {
    .wp-cod-04-form {
        padding: 0 16px;
    }
}
