/**
 * Rediseño funnel PCC (checkout FunnelKit id 12732)
 * Paleta según Figma: menta #8bfcd4, menta claro #a3fbdd / #c9fded, verde oscuro #245754, acento #17836b
 */

/* ---------- Header: fondo del diseño (SVG con las formas del Figma) ---------- */
.postid-12732 .bwf-section-4142e70c {
    position: relative;
    overflow: hidden;
    background-color: #8bfcd4;
    background-image: url(../img/pcc-hero-bg.svg);
    background-repeat: no-repeat;
    background-position: center top;
    /* el viewBox del SVG (1284x500) es la banda del frame de Figma y tiene
       su misma proporción, así que estirar a 100% no deforma los círculos */
    background-size: 100% 100%;
    padding-bottom: 101px !important;
}
.postid-12732 .bwf-section-4142e70c > .bwf-col {
    position: relative;
    z-index: 1;
}

/* ---------- Top bar ---------- */
/* Logo blanco -> oscuro */
.postid-12732 .bwf-section-7c018712 .wp-block-image img {
    filter: brightness(0.25);
    max-width: 90px;
    height: auto;
}
.postid-12732 .bwf-section-7c018712 a {
    color: #245754;
    text-decoration: none;
}
.postid-12732 .bwf-section-7c018712 a:hover {
    text-decoration: underline;
}
/* Volver: flecha en lugar del check */
.postid-12732 .bwf-icon-list-wrap.bwf-list-89f888c4 .bwf-icon-list .bwf-icon-inner-svg {
    display: none !important;
}
.postid-12732 .bwf-list-89f888c4 .bwf-icon-list-text a::before {
    content: "\2190\00a0";
}

/* ---------- Hero ----------
   Medidas tomadas del mockup de Figma y expresadas en proporción al ancho
   de la card del formulario (en el diseño el texto arranca en el borde
   izquierdo de la card y la foto termina en el borde derecho). */
.postid-12732 .bwf-inner-col-9ec0f1b3 {
    padding: 4px 10px 0 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.postid-12732 .pcc-hero-sub {
    font-family: 'Poppins', sans-serif;
    color: #245754;
    text-align: left;
    font-size: 19px;
    line-height: 24px;
    font-weight: 400;
    margin: 0;
    padding-top: 12px;
    border-top: 2px solid #245754;
    max-width: 240px;
}
.postid-12732 .pcc-hero-sub strong { font-weight: 600; }

/* Foto: cuadrada y ocupando el ancho de su columna (48% de la card) */
.postid-12732 .bwf-inner-col-9ec0f1e6 {
    display: flex;
    align-items: center;
}
.postid-12732 .pcc-hero-foto {
    margin: 0;
    width: 100%;
}
.postid-12732 .pcc-hero-foto img {
    width: 100%;
    max-width: 279px;
    height: auto;
}

/* La card sube menos que antes: en el diseño pisa la banda menta ~120px */
.postid-12732 .bwf-section-wrap .bwf-col .bwf-inner-col.bwf-inner-col-cf3ad3e7 {
    margin-top: -114px;
}

/* Nota de facturación / consultas: va dentro de la card, pegada al botón
   de confirmar, para que no se pierda al pie de la página. */
.postid-12732 .pcc-nota-factura {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    line-height: 19px;
    color: #245754;
    background: #f1fbf7;
    border: 1px solid #cbe9de;
    border-radius: 12px;
    margin: 0 12px 14px;
    padding: 12px 16px;
    text-align: center;
}
.postid-12732 .pcc-nota-factura strong {
    font-weight: 600;
}

/* Línea "Solicitá tu cupón de descuento por WhatsApp" (se inyecta desde PHP) */
.postid-12732 .pcc-cupon-wsp {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: #333333;
    margin: 4px 0 10px;
}
.postid-12732 .pcc-cupon-wsp a {
    color: #17836b;
    font-weight: 600;
    text-decoration: underline;
}

/* ---------- Card del formulario ---------- */
/* Inputs redondeados */
.postid-12732 .wfacp-form-control,
.postid-12732 select.wfacp-form-control,
.postid-12732 .wfacp_main_form .woocommerce-input-wrapper input,
.postid-12732 .wfacp_main_form .woocommerce-input-wrapper select {
    border-radius: 10px;
}

/* Rayitas decorativas del theme sobre los títulos del hero */
.postid-12732 .bwf-adv-heading::before,
.postid-12732 .bwf-adv-heading::after {
    display: none !important;
}

/* Botón principal pill */
.postid-12732 #place_order,
.postid-12732 .wfacp_main_form button[type="submit"] {
    border-radius: 999px !important;
    font-weight: 600;
    box-shadow: none;
}
.postid-12732 #wfacp-e-form #place_order:before {
    color: #245754 !important;
}

/* Botón Aplicar cupón: pill menta claro con borde oscuro */
.postid-12732 #wfacp-e-form button.wfacp-coupon-btn,
.postid-12732 #wfacp-e-form button.wfacp-coupon-field-btn {
    border-radius: 999px !important;
    background-color: #c9fded !important;
    color: #245754 !important;
    border: 1.5px solid #245754 !important;
    font-weight: 500;
}
.postid-12732 #wfacp-e-form button.wfacp-coupon-btn:hover,
.postid-12732 #wfacp-e-form button.wfacp-coupon-field-btn:hover {
    background-color: #8bfcd4 !important;
}
.postid-12732 #wfacp-e-form button.wfacp-coupon-btn:disabled,
.postid-12732 #wfacp-e-form button.wfacp-coupon-field-btn:disabled {
    background-color: #e6fbf3 !important;
    color: #6f9d90 !important;
    border-color: #a9d8c8 !important;
}

/* Campo cupón pill */
.postid-12732 .wfacp_coupon_field_input {
    border-radius: 24px !important;
    padding-left: 18px;
}

/* ---------- Uploader de credencial (plugin Checkout Files Upload) ----------
   El markup del plugin se cambió desde sus propias opciones (tabla -> divs),
   así que acá solo va el estilo. Cuidado: el JS del plugin busca el contenedor
   del archivo subido con closest('div'), por eso el link de borrar no se
   envuelve en ningún div extra. */
.postid-12732 .aapas-upload {
    margin: 0 0 16px;
    border-radius: 14px;
    transition: outline-color .15s ease, background-color .15s ease;
}
.postid-12732 .aapas-upload__label label {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: #333333;
    display: inline-block;
    margin-bottom: 10px;
}
.postid-12732 .aapas-upload__hint {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    line-height: 18px;
    color: #6f8b84;
    margin: 8px 0 0;
}

/* Botón pill menta, como en el diseño */
.postid-12732 .alg_checkout_files_upload_button,
.postid-12732 input[type="button"].alg_checkout_files_upload_button {
    background: #c9fded !important;
    color: #245754 !important;
    border: 1.5px solid #245754 !important;
    border-radius: 999px !important;
    padding: 9px 24px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    cursor: pointer;
}
.postid-12732 .alg_checkout_files_upload_button:hover {
    background: #8bfcd4 !important;
}

/* Estado "arrastrando un archivo encima" */
.postid-12732 .aapas-upload.is-dragover {
    /* offset negativo: hacia afuera lo recorta el overflow de la card */
    outline: 2px dashed #17836b !important;
    outline-offset: -2px;
    background: #f2fffa !important;
}

/* Ficha del archivo ya subido */
.postid-12732 .alg_checkout_files_upload_result_1 {
    display: flex !important;
    align-items: center;
    gap: 10px;
    background: #f1fbf7;
    border: 1px solid #cbe9de;
    border-radius: 12px;
    padding: 8px 12px;
    margin-top: 10px;
}
.postid-12732 .alg_checkout_files_upload_result_1[style*="display: none"] {
    display: none !important;
}
.postid-12732 .alg_checkout_files_upload_result_image:empty {
    display: none;
}
.postid-12732 .alg_checkout_files_upload_result_file_name,
.postid-12732 .alg_checkout_files_upload_result_file_name a {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    line-height: 18px;
    color: #245754 !important;
    text-decoration: none;
    word-break: break-all;
}
.postid-12732 .alg_checkout_files_upload_result_file_name a:hover {
    text-decoration: underline;
}
.postid-12732 .alg_checkout_files_upload_result_delete {
    margin-left: auto !important;
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    /* FunnelKit resetea background y border de todos los <a> del form */
    background: #ffffff !important;
    border: 1px solid #d9c3c3 !important;
    color: #b3261e !important;
    font-size: 16px;
    line-height: 1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.postid-12732 .alg_checkout_files_upload_result_delete:hover {
    background: #ffecec !important;
    border-color: #b3261e !important;
}

/* Error de validación propio (formato / tamaño) */
.postid-12732 .aapas-upload__error {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    line-height: 18px;
    color: #b3261e;
    margin: 8px 0 0;
}

/* Radios de programas en acento verde */
.postid-12732 .wfacp-product-switch-panel input[type="radio"],
.postid-12732 .wfacp_main_form input[type="radio"],
.postid-12732 .wfacp_main_form input[type="checkbox"] {
    accent-color: #17836b;
}
.postid-12732 .wfacp-product-switch-panel {
    border-radius: 10px;
    overflow: hidden;
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) and (min-width: 768px) {
    .postid-12732 .pcc-hero-sub {
        font-size: 17px;
        line-height: 23px;
        max-width: 230px;
    }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
    /* En vertical el SVG estirado deformaría los círculos: se recorta */
    .postid-12732 .bwf-section-4142e70c {
        background-size: auto 100%;
        background-position: 38% top;
        padding-bottom: 76px !important;
    }

    /* Top bar en una sola fila: Volver | logo | Pago Seguro.
       Los selectores llevan body + .bwf-section-wrap para ganarle en
       especificidad al "flex-direction: column !important" que genera el bloque. */
    body.postid-12732 .bwf-section-wrap.bwf-section-7c018712 > .bwf-col {
        flex-direction: row !important;
        align-items: center;
        flex-wrap: nowrap;
    }
    body.postid-12732 .bwf-section-wrap.bwf-section-7c018712 > .bwf-col > .bwf-inner-col {
        flex: 1 1 0 !important;
        width: auto !important;
        padding: 8px 4px !important;
        margin: 0 !important;
    }
    .postid-12732 .bwf-list-c3fae38d .bwf-icon-list {
        margin: 0 !important;
        justify-content: flex-end;
    }
    .postid-12732 .bwf-section-7c018712 .bwf-icon-list-text {
        font-size: 13px !important;
    }
    .postid-12732 .bwf-section-7c018712 .wp-block-image img {
        max-width: 62px;
    }

    /* Hero apilado y centrado */
    .postid-12732 .bwf-inner-col-9ec0f1b3 {
        align-items: center;
        text-align: center;
        padding: 0 4px !important;
    }
    .postid-12732 .pcc-hero-sub {
        font-size: 15px;
        line-height: 22px;
        text-align: center;
        border-top: none;
        padding-top: 4px;
        max-width: 300px;
        margin: 0 auto;
    }
    .postid-12732 .pcc-hero-foto img {
        max-width: 220px;
        margin: 0 auto;
    }
    .postid-12732 .bwf-inner-col-9ec0f1e6 {
        justify-content: center;
    }

    /* La card casi no pisa la banda en mobile */
    .postid-12732 .bwf-section-wrap .bwf-col .bwf-inner-col.bwf-inner-col-cf3ad3e7 {
        margin-top: -40px;
    }
    .postid-12732 .pcc-nota-factura {
        font-size: 12px;
        line-height: 18px;
        margin: 0 8px 12px;
        padding: 11px 13px;
    }
}
