/*
 * Cuotealo BCP styles.
 * Every rule is scoped to a Cuotealo element so the store theme is not affected.
 * Sizes use px (not rem) so they look the same whatever root font size the theme uses.
 * Fonts are inherited from the theme.
 */

/*********** Product page ***********/
#cuotealo-available-product {
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    width: 100%;
    margin: 12px 0;
    padding: 10px 12px;
    background-color: #f3f3f3;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
    color: #333333;
}
#cuotealo-available-product .cuotealo-text {
    flex: 1 1 180px;
    min-width: 0;
}
#cuotealo-available-product .cuotealo-logo {
    flex: 0 0 auto;
    line-height: 0;
}
#cuotealo-available-product p {
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.4;
    color: #333333;
}
#cuotealo-available-product strong {
    font-weight: 700;
    color: #002a8d;
}
#cuotealo-available-product img,
.cuotealo-modal-inner-content img,
.cuotealo-payment-icon {
    background: transparent none !important; /* some themes add a placeholder color or image behind images */
    box-shadow: none;
    border: 0;
    padding: 0;
}
#cuotealo-available-product .cuotealo-logo img {
    display: block;
    width: 120px;
    max-width: 100%;
    height: auto;
}
/* "Simular otras cuotas" is a <button> since 3.5.5: clear the theme button styles so it looks like a link */
#cuotealo-available-product #cuotealo-modal-btn,
#cuotealo-available-product #cuotealo-modal-btn:hover,
#cuotealo-available-product #cuotealo-modal-btn:focus,
#cuotealo-available-product #cuotealo-modal-btn:active {
    display: inline-block;
    width: auto;
    min-width: 0;
    height: auto;
    min-height: 0;
    margin: 2px 0 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: normal;
    text-align: left;
    text-decoration: underline;
    text-shadow: none;
    text-transform: none;
    color: #000000;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}
#cuotealo-available-product #cuotealo-modal-btn:focus-visible {
    outline: 2px solid #ff7800;
    outline-offset: 2px;
}
.cuotealo-hidden {
    display: none !important;
}

/*********** Product modal ***********/
/* Own modal since 3.5.5 (no Magento_Ui/js/modal): same design and markup as WooCommerce 3.5.5.
   The id is repeated (#x#x) so theme rules, even with an id, do not win; a reset clears
   what the theme puts on p, h2, h3, a, button, img, span or strong inside the modal.
   Brand colors taken from the Cuotealo logo: blue #002a8d and orange #ff7800 */
#cuotealo-modal#cuotealo-modal,
#cuotealo-modal#cuotealo-modal * {
    box-sizing: border-box;
    float: none;
    width: auto;
    min-width: 0;
    max-width: none;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    outline: 0;
    font-family: inherit;
    font-size: inherit;
    font-style: normal;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    text-align: inherit;
    text-decoration: none;
    text-shadow: none;
    text-transform: none;
    letter-spacing: normal;
    word-spacing: normal;
    white-space: normal;
    opacity: 1;
    transform: none;
    transition: none;
}
#cuotealo-modal#cuotealo-modal p,
#cuotealo-modal#cuotealo-modal div,
#cuotealo-modal#cuotealo-modal h2,
#cuotealo-modal#cuotealo-modal h3 {
    display: block;
}
#cuotealo-modal#cuotealo-modal img {
    display: block;
    max-width: 100%;
}
#cuotealo-modal#cuotealo-modal strong {
    font-weight: 700;
}
html.cuotealo-modal-open,
html.cuotealo-modal-open body {
    overflow: hidden;
}
#cuotealo-modal#cuotealo-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    color: #333333;
    text-align: center;
}
#cuotealo-modal#cuotealo-modal[hidden] {
    display: none !important;
}
#cuotealo-modal#cuotealo-modal .cuotealo-modal {
    position: relative;
    width: 100%;
    max-width: 680px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 48px 32px 32px;
    background: #ffffff;
    border-top: 4px solid #ff7800;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}
#cuotealo-modal#cuotealo-modal .cuotealo-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 38px;
    color: #002a8d;
    text-align: center;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}
#cuotealo-modal#cuotealo-modal .cuotealo-modal-close:hover {
    background: #eef1f9;
}
#cuotealo-modal#cuotealo-modal .cuotealo-modal-close:focus-visible {
    outline: 2px solid #ff7800;
    outline-offset: 2px;
}
#cuotealo-modal#cuotealo-modal .cuotealo-modal-inner-content {
    max-width: 600px;
    margin: 0 auto;
}
#cuotealo-modal#cuotealo-modal .cuotealo-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}
#cuotealo-modal#cuotealo-modal p {
    margin: 0 0 12px;
}
#cuotealo-modal#cuotealo-modal .cuotealo-modal-inner-content > img {
    width: 360px;
    max-width: 85%;
    margin: 0 auto 24px;
}
#cuotealo-modal#cuotealo-modal #cuotealo-product-price {
    display: inline-block;
    margin: 12px 0 8px;
    padding: 8px 16px;
    background: #eef1f9;
    border-radius: 999px;
    color: #002a8d;
}
#cuotealo-modal#cuotealo-modal #cuotealo-offers {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
    margin: 20px 0 24px;
}
#cuotealo-modal#cuotealo-modal .cuotealo-offer {
    flex: 1 1 0;
    min-width: 150px;
    padding: 14px 12px;
    background: #ffffff;
    border: 1px solid #d5dbee;
    border-top: 4px solid #ff7800;
    border-radius: 8px;
    color: #002a8d;
}
#cuotealo-modal#cuotealo-modal .cuotealo-offer span {
    display: block;
    font-size: 13px;
    line-height: 1.3;
    color: #555555;
}
#cuotealo-modal#cuotealo-modal .cuotealo-offer h3 {
    margin: 6px 0 0;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    color: #002a8d;
    white-space: nowrap;
}
#cuotealo-modal#cuotealo-modal #cuotealo-t-and-c {
    margin: 0 0 16px;
    font-size: 12px;
    line-height: 1.4;
    color: #666666;
}
#cuotealo-modal#cuotealo-modal .cuotealo-simulator-wrapper {
    margin: 24px 0 8px;
}
#cuotealo-modal#cuotealo-modal .cuotealo-simulator-wrapper a,
#cuotealo-modal#cuotealo-modal .cuotealo-simulator-wrapper a:visited {
    display: inline-block;
    max-width: 100%;
    padding: 12px 32px;
    background: #002a8d;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
}
#cuotealo-modal#cuotealo-modal .cuotealo-simulator-wrapper a:hover,
#cuotealo-modal#cuotealo-modal .cuotealo-simulator-wrapper a:focus {
    background: #ff7800;
    color: #002a8d;
}

/* Tablets and phones */
@media (max-width: 767px) {
    #cuotealo-modal#cuotealo-modal .cuotealo-modal {
        padding: 48px 20px 24px;
    }
    #cuotealo-modal#cuotealo-modal .cuotealo-modal-inner-content > img {
        width: 300px;
    }
}
@media (max-width: 480px) {
    #cuotealo-modal#cuotealo-modal {
        padding: 12px;
        font-size: 14px;
    }
    #cuotealo-modal#cuotealo-modal .cuotealo-modal {
        max-height: calc(100vh - 24px);
        padding: 48px 16px 20px;
    }
    #cuotealo-modal#cuotealo-modal .cuotealo-modal-inner-content > img {
        width: 260px;
        max-width: 90%;
        margin-bottom: 16px;
    }
    /* Offers stacked: label on the left, amount on the right */
    #cuotealo-modal#cuotealo-modal #cuotealo-offers {
        flex-direction: column;
        gap: 8px;
    }
    #cuotealo-modal#cuotealo-modal .cuotealo-offer {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-width: 0;
        padding: 12px 14px;
        border-top: 1px solid #d5dbee;
        border-left: 4px solid #ff7800;
        text-align: left;
    }
    #cuotealo-modal#cuotealo-modal .cuotealo-offer h3 {
        margin: 0;
        font-size: 20px;
    }
    #cuotealo-modal#cuotealo-modal .cuotealo-simulator-wrapper a,
    #cuotealo-modal#cuotealo-modal .cuotealo-simulator-wrapper a:visited {
        display: block;
        width: 100%;
    }
}

/*********** Checkout ***********/
.cuotealo-payment-icon {
    display: inline-block;
    width: 120px;
    max-width: 100%;
    height: auto;
    margin: 0 8px 0 0;
    vertical-align: middle;
}
#cuotealo-bcp-checkout-wrapper {
    box-sizing: border-box;
    margin-bottom: 12px;
    padding: 0 0 12px 10px;
    border-bottom: 1px solid #dedede;
    font-size: 14px;
    line-height: 1.4;
    color: #333333;
}
#cuotealo-bcp-checkout-wrapper h3 {
    margin: 16px 0;
    padding: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: #333333;
    text-transform: none;
    letter-spacing: normal;
}
#cuotealo-bcp-checkout-wrapper .cuotealo-txt {
    display: flex;
    align-items: flex-start;
    margin: 0 0 10px;
    padding-left: 5px;
    font-size: 14px;
    line-height: 20px;
    color: #333333;
}
#cuotealo-bcp-checkout-wrapper .cuotealo-txt::before {
    content: '';
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
#cuotealo-bcp-checkout-wrapper .cuotealo-txt.cuotealo_ic_agency::before {
    background-image: url(images/ic_agency.png);
}
#cuotealo-bcp-checkout-wrapper .cuotealo-txt.cuotealo_ic_shopping_bag::before {
    background-image: url(images/ic_shopping_bag.png);
}
#cuotealo-bcp-checkout-wrapper .cuotealo-txt.cuotealo_ic_calendar_clock::before {
    background-image: url(images/ic_calendar_clock.png);
}
#cuotealo-bcp-checkout-wrapper .cuotealo-txt.cuotealo_ic_megaphone::before {
    background-image: url(images/ic_megaphone.png);
}
#cuotealo-bcp-checkout-wrapper .cuotealo-txt strong {
    font-weight: 700;
}
#cuotealo-bcp-checkout-wrapper .cuotealo-txt > span {
    flex: 1 1 auto;
    min-width: 0;
}
#cuotealo-bcp-checkout-wrapper .cuotealo-txt a,
#cuotealo-bcp-checkout-wrapper .cuotealo-txt a:visited,
#cuotealo-bcp-checkout-wrapper .cuotealo-txt a:hover {
    color: #a70053;
    font-weight: 700;
    text-decoration: underline;
}
#cuotealo-bcp-checkout-wrapper .cuotealo-tc-wrapper {
    box-sizing: border-box;
    max-width: 540px;
    margin-top: 12px;
    padding: 12px 16px;
    background-color: #ebf4ff;
    border-radius: 8px;
}
#cuotealo-bcp-checkout-wrapper .cuotealo-tc-wrapper p {
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    color: #001f5a;
}


/*********** Paso hacia el BCP (despues de "Realizar pedido") ***********/
/* Mismo diseño que la página de redirección de WooCommerce 3.5.5 y PrestaShop 2.5.3.
   La arma method-renderer/cuotealo-method.js encima del checkout. Aislada del tema con
   id repetido y reset; solo hereda la fuente de la tienda. */
html.cuotealo-redirect-open,
html.cuotealo-redirect-open body {
    overflow: hidden;
}
#cuotealo-redirect-overlay#cuotealo-redirect-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    margin: 0;
    background: #f3f5fa;
    border: 0;
    overflow-y: auto;
    box-sizing: border-box;
    font-size: 15px;
    line-height: 1.5;
    color: #333333;
}
#cuotealo-redirect#cuotealo-redirect,
#cuotealo-redirect#cuotealo-redirect * {
    box-sizing: border-box;
    float: none;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-family: inherit;
    font-size: inherit;
    font-style: normal;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    text-align: inherit;
    text-decoration: none;
    text-shadow: none;
    text-transform: none;
    letter-spacing: normal;
    min-width: 0;
    min-height: 0;
}
#cuotealo-redirect#cuotealo-redirect strong { font-weight: 700; }
#cuotealo-redirect#cuotealo-redirect {
    width: 100%;
    max-width: 480px;
    padding: 40px 32px 28px;
    background: #ffffff;
    border-top: 4px solid #ff7800;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 42, 141, 0.12);
    text-align: center;
}
#cuotealo-redirect#cuotealo-redirect .cuotealo-logo { display: block; width: 260px; max-width: 80%; height: auto; margin: 0 auto 28px; }
#cuotealo-redirect#cuotealo-redirect .cuotealo-spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    border: 5px solid #eef1f9;
    border-top-color: #ff7800;
    border-right-color: #002a8d;
    border-radius: 50%;
    animation: cuotealo-spin 0.9s linear infinite;
}
@keyframes cuotealo-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #cuotealo-redirect#cuotealo-redirect .cuotealo-spinner { animation-duration: 3s; } }
#cuotealo-redirect#cuotealo-redirect h1 { margin: 0 0 8px; font-size: 22px; line-height: 1.3; font-weight: 700; color: #002a8d; }
#cuotealo-redirect#cuotealo-redirect p { margin: 0 0 12px; }
#cuotealo-redirect#cuotealo-redirect .cuotealo-order {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 20px 0 16px;
    padding: 12px 16px;
    background: #eef1f9;
    border-radius: 8px;
    color: #002a8d;
    text-align: left;
}
#cuotealo-redirect#cuotealo-redirect .cuotealo-order span { display: block; font-size: 12px; color: #555555; }
#cuotealo-redirect#cuotealo-redirect .cuotealo-order strong { font-size: 17px; }
#cuotealo-redirect#cuotealo-redirect .cuotealo-order div:last-child { text-align: right; }
#cuotealo-redirect#cuotealo-redirect .cuotealo-note { font-size: 13px; color: #666666; }
#cuotealo-redirect#cuotealo-redirect .cuotealo-secure { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid #e3e6ef; font-size: 12px; color: #666666; }
#cuotealo-redirect#cuotealo-redirect .cuotealo-help { margin-top: 16px; }
#cuotealo-redirect#cuotealo-redirect .cuotealo-help[hidden] { display: none; }
#cuotealo-redirect#cuotealo-redirect .cuotealo-error { color: #a70053; font-weight: 700; }
#cuotealo-redirect#cuotealo-redirect .cuotealo-btn {
    display: inline-block;
    margin: 4px 0 12px;
    padding: 12px 32px;
    background: #002a8d;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
}
#cuotealo-redirect#cuotealo-redirect .cuotealo-btn:hover, #cuotealo-redirect#cuotealo-redirect .cuotealo-btn:focus { background: #ff7800; color: #002a8d; }
#cuotealo-redirect#cuotealo-redirect a { color: #002a8d; font-weight: 700; text-decoration: underline; cursor: pointer; }
@media (max-width: 480px) {
    #cuotealo-redirect#cuotealo-redirect { padding: 32px 20px 24px; }
    #cuotealo-redirect#cuotealo-redirect h1 { font-size: 20px; }
    #cuotealo-redirect#cuotealo-redirect .cuotealo-btn { display: block; width: 100%; }
}
