/* Plantilla de formulario COD "01 · COD Base" — tarjeta con resumen de compra */

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

.wp-cod-01-header h3 {
    text-align: left;
    font-size: 19px;
    font-weight: 900;
    margin: 0 0 16px 0;
    padding-right: 24px;
    color: #111;
}

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

.wp-cod-01-summary-product {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.wp-cod-01-summary-product img {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.wp-cod-01-summary-name {
    font-weight: 700;
    font-size: 14px;
    color: #222;
}

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

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

/* --- Advertencia --- */
.wp-cod-01-warning {
    font-style: italic;
    text-align: center;
    font-size: 13px;
    color: #7a5b00;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    padding: 8px 12px;
    margin: 0 0 16px 0;
}

/* --- Campos con ícono --- */
.wp-cod-01-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #333;
}

.wp-cod-01-input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #d8dadf;
    border-radius: 27px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s;
}

.wp-cod-01-input-wrap:focus-within {
    border-color: #ec1f8c;
}

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

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

/* --- Checkbox de envío prioritario --- */
.wp-cod-01-addon {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px dashed #7fd6a3;
    background: #f0fbf4;
    border-radius: 10px;
    padding: 10px 12px;
    margin: 4px 0 18px 0;
    cursor: pointer;
    font-size: 13.5px;
    color: #1f6b3a;
}

.wp-cod-01-addon input {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: #1f6b3a;
}

/* --- Botones --- */
.wp-cod-01-cta {
    border-radius: 10px !important;
    font-size: 18px !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 14px rgba(236, 31, 140, 0.35);
}

.wp-cod-01-secondary-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    border: none;
    border-radius: 32px;
    background: #4a1942;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

.wp-cod-01-secondary-btn:hover {
    background: #601f56;
}

.wp-cod-01-secondary-btn small {
    font-weight: 400;
    font-size: 11.5px;
    opacity: 0.85;
}

/* --- Insignias de confianza (genéricas, sin logos de terceros) --- */
.wp-cod-01-trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.wp-cod-01-trust-badges span {
    background: #f4f5f7;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    color: #444;
    white-space: nowrap;
}

/* --- Campo tipo imagen reutilizado también en esta plantilla --- */
.wp-cod-01-wrapper .wp-cod-image-group {
    text-align: center;
    margin-bottom: 16px;
}
.wp-cod-01-wrapper .wp-cod-image-group img {
    max-width: 100%;
    border-radius: 8px;
}

.wp-cod-01-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-01-pay-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}

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

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

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

@media (max-width: 480px) {
    .wp-cod-01-wrapper {
        padding: 18px;
    }
}
