/* SimpleTools SEAP / SICAP offer CTA */
body.stpp-product-layout .summary .stpp-seap-offer {
    width: 100%;
    margin: -2px 0 12px;
    text-align: center;
}

body.stpp-product-layout .summary .stpp-seap-offer__trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 11px 18px;
    overflow: hidden;
    border: 1px solid #58a77e;
    border-radius: 6px;
    background: #fff;
    color: #005f37;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: none;
    cursor: pointer;
    box-shadow: none;
    transition: transform .18s ease, box-shadow .18s ease;
}

body.stpp-product-layout .summary .stpp-seap-offer__trigger-icon {
    display: inline-flex;
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
}

body.stpp-product-layout .summary .stpp-seap-offer__trigger-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.stpp-product-layout .summary .stpp-seap-offer__trigger:hover {
    border-color: transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        conic-gradient(
            from var(--stpp-cta-ring-angle, 0deg),
            transparent 0deg 276deg,
            rgba(0, 141, 75, .12) 292deg,
            #007b45 310deg,
            #12b766 326deg,
            #62f2aa 341deg,
            transparent 357deg 360deg
        ) border-box;
    box-shadow: 0 0 12px rgba(0,141,75,.13);
    transform: translateY(-1px);
    animation: stpp-cta-ring-run 1.20s linear infinite;
}

body.stpp-product-layout .summary .stpp-seap-offer__trigger:active {
    transform: scale(.99);
}

body.stpp-product-layout .summary .stpp-seap-offer__badge {
    display: block;
    width: 200px;
    max-width: 100%;
    margin: 7px auto 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    opacity: .92;
    transition: transform .18s ease, opacity .18s ease;
}

body.stpp-product-layout .summary .stpp-seap-offer__badge:hover {
    transform: translateY(-1px) scale(1.02);
    opacity: 1;
}

body.stpp-product-layout .summary .stpp-seap-offer__badge img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 70, 40, .08);
}

/* Dacă vechiul modul separat de ofertare este încă activ, ascundem CTA-ul lui
 * pe layoutul STPP ca să nu apară două butoane de ofertă. */
body.stpp-product-layout .summary > .tpo-offer-popup-wrap {
    display: none !important;
}

html.stpp-seap-modal-open,
html.stpp-seap-modal-open body {
    overflow: hidden !important;
}

.stpp-seap-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000002;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.stpp-seap-modal.is-open {
    display: flex;
}

.stpp-seap-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(1, 34, 23, .68);
    backdrop-filter: blur(5px);
}

.stpp-seap-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(660px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 26px;
    border: 1px solid rgba(16, 121, 70, .22);
    border-radius: 18px;
    background: #fff;
    color: #13231c;
    box-shadow: 0 28px 80px rgba(0, 40, 24, .32);
}

.stpp-seap-modal .stpp-seap-modal__close {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    left: auto !important;
    z-index: 6;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #0b6d42 !important;
    border-radius: 50% !important;
    background: #107946 !important;
    color: #fff !important;
    font-family: Arial, sans-serif !important;
    font-size: 27px !important;
    font-weight: 400 !important;
    line-height: 40px !important;
    text-align: center !important;
    cursor: pointer;
    box-shadow: 0 7px 18px rgba(0, 82, 47, .20) !important;
    transform: none !important;
    transition: background .18s ease, box-shadow .18s ease, transform .18s ease !important;
}

.stpp-seap-modal .stpp-seap-modal__close:hover {
    background: #075f38 !important;
    color: #fff !important;
    box-shadow: 0 9px 22px rgba(0, 82, 47, .28) !important;
    transform: translateY(-1px) !important;
}

.stpp-seap-modal__head {
    padding-right: 64px;
    margin-bottom: 20px;
}

.stpp-seap-modal__eyebrow {
    display: inline-block;
    margin-bottom: 7px;
    color: #107946;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
}

.stpp-seap-modal__head h2 {
    margin: 0 0 7px;
    color: #071f15;
    font-size: 24px;
    line-height: 1.2;
}

.stpp-seap-modal__head p {
    margin: 0;
    color: #607169;
    font-size: 13px;
}

.stpp-seap-modal__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.stpp-seap-modal__grid label {
    display: block;
    margin: 0;
    color: #263a31;
    font-size: 12px;
    font-weight: 700;
}

.stpp-seap-modal__grid label > span {
    display: block;
    margin-bottom: 6px;
}

.stpp-seap-modal__grid label small {
    color: #819087;
    font-weight: 500;
}

.stpp-seap-modal__grid input {
    width: 100%;
    height: 45px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid #dbe6df;
    border-radius: 8px;
    background: #fff;
    color: #16281f;
    box-shadow: none;
    outline: none;
}

.stpp-seap-modal__grid input:focus {
    border-color: #107946;
    box-shadow: 0 0 0 3px rgba(16, 121, 70, .10);
}

.stpp-seap-modal__wide {
    grid-column: 1 / -1;
}

.stpp-seap-modal .stpp-seap-modal__submit {
    position: relative !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-height: 48px;
    margin-top: 16px !important;
    padding: 11px 18px !important;
    overflow: hidden;
    border: 1px solid #08733f !important;
    border-radius: 8px !important;
    background: linear-gradient(100deg, #078d49 0%, #006f3f 100%) !important;
    color: #fff !important;
    font-family: inherit;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-transform: none !important;
    cursor: pointer;
    box-shadow: 0 9px 18px rgba(0,112,63,.17) !important;
    transition: transform .18s ease, box-shadow .18s ease !important;
}

.stpp-seap-modal .stpp-seap-modal__submit:hover {
    border-color: transparent !important;
    background:
        linear-gradient(100deg, #078d49 0%, #006f3f 100%) padding-box,
        conic-gradient(
            from var(--stpp-cta-ring-angle, 0deg),
            transparent 0deg 276deg,
            rgba(0, 141, 75, .12) 292deg,
            #007b45 310deg,
            #12b766 326deg,
            #62f2aa 341deg,
            transparent 357deg 360deg
        ) border-box !important;
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(0,112,63,.24), 0 0 12px rgba(18,183,102,.13) !important;
    transform: translateY(-1px);
    animation: stpp-cta-ring-run 1.20s linear infinite;
}

.stpp-seap-modal .stpp-seap-modal__submit:active {
    transform: scale(.99);
}

@media (max-width: 767px) {
    body.stpp-product-layout .summary .stpp-seap-offer {
        margin-bottom: 10px;
    }

    body.stpp-product-layout .summary .stpp-seap-offer__badge {
        width: 160px;
        max-width: 70%;
    }

    .stpp-seap-modal {
        padding: 10px;
        align-items: flex-start;
    }

    .stpp-seap-modal .stpp-seap-modal__close {
        top: 12px !important;
        right: 12px !important;
        width: 38px !important;
        min-width: 38px !important;
        max-width: 38px !important;
        height: 38px !important;
        min-height: 38px !important;
        font-size: 24px !important;
        line-height: 36px !important;
    }

    .stpp-seap-modal__dialog {
        width: 100%;
        max-height: calc(100dvh - 20px);
        margin: 0;
        padding: 20px 16px 18px;
        border-radius: 14px;
    }

    .stpp-seap-modal__grid {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .stpp-seap-modal__wide {
        grid-column: auto;
    }

    .stpp-seap-modal__head h2 {
        font-size: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.stpp-product-layout .summary .stpp-seap-offer__trigger:hover,
    body.stpp-product-layout .summary .stpp-seap-offer__badge:hover,
    .stpp-seap-modal .stpp-seap-modal__submit:hover {
        animation: none;
        transform: none;
    }
}

/* v1.0.38 - TBI + SEAP + plata in rate, trei carduri egale pe acelasi rand. */
@property --stpp-payment-ring-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

body.stpp-product-layout .summary form.cart.stpp-tbi-relocated {
    grid-template-areas:
        "qty cart"
        "buy buy" !important;
}

body.stpp-product-layout .summary form.cart .stpp-tbi-source--relocated {
    margin: 0 !important;
    padding: 0 !important;
}

/* v1.0.42 - click-ul pe cardul TBI ajunge direct in butonul original Fusion Pay. */
body.stpp-product-layout .summary form.cart .stpp-tbi-source--click-overlay {
    position: fixed !important;
    z-index: 2147482000 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    opacity: .001 !important;
    pointer-events: auto !important;
    clip-path: none !important;
    transform: none !important;
    border: 0 !important;
    background: transparent !important;
    cursor: pointer !important;
}

body.stpp-product-layout .summary form.cart .stpp-tbi-source--click-overlay #tbi_button,
body.stpp-product-layout .summary form.cart .stpp-tbi-source--click-overlay .tbi_button2,
body.stpp-product-layout .summary form.cart .stpp-tbi-source--click-overlay #tbi_button_body,
body.stpp-product-layout .summary form.cart .stpp-tbi-source--click-overlay .tbi_button_body2 {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer !important;
}

body.stpp-product-layout .summary .stpp-payment-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
    width: 100%;
    margin: 7px 0 0;
}

body.stpp-product-layout .summary .stpp-payment-options .stpp-payment-card {
    --stpp-payment-card-bg: #fff;
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 72px !important;
    min-height: 72px !important;
    margin: 0 !important;
    padding: 3px !important;
    overflow: hidden;
    border: 1px solid #cfe3d7 !important;
    border-radius: 7px !important;
    background: var(--stpp-payment-card-bg) !important;
    color: #07160d !important;
    text-decoration: none !important;
    box-shadow: 0 3px 10px rgba(16,121,70,.07) !important;
    opacity: 1 !important;
    cursor: pointer;
    isolation: isolate;
    animation: none !important;
    transition: border-color .18s ease, box-shadow .18s ease !important;
}

body.stpp-product-layout .summary .stpp-payment-options .stpp-payment-card--tbi {
    --stpp-payment-card-bg: #e8f3e9;
    flex-direction: column;
    gap: 4px;
    font-family: inherit;
    text-align: center;
    text-transform: none;
}

body.stpp-product-layout .summary .stpp-payment-options .stpp-payment-card:hover {
    transform: none !important;
    border-color: #a9d2ba !important;
    box-shadow: 0 3px 10px rgba(16,121,70,.09) !important;
}

body.stpp-product-layout .summary .stpp-payment-options .stpp-payment-card:active {
    transform: none !important;
}

body.stpp-product-layout .summary .stpp-payment-options .stpp-payment-card img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 4px !important;
    background: transparent;
    box-shadow: none !important;
    object-fit: contain !important;
    object-position: center;
}

body.stpp-product-layout .summary .stpp-payment-options .stpp-tbi-proxy__line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    color: #07160d;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.1;
    white-space: nowrap;
}

body.stpp-product-layout .summary .stpp-payment-options .stpp-tbi-proxy__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    border-radius: 5px;
    background: #050505;
    color: #ff7a00;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.4px;
    text-transform: lowercase;
}

body.stpp-product-layout .summary .stpp-payment-options .stpp-tbi-proxy__price {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: #07160d;
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@keyframes stpp-payment-ring-run {
    to {
        --stpp-payment-ring-angle: 360deg;
    }
}

@media (max-width: 767px) {
    body.stpp-product-layout .summary .stpp-payment-options {
        gap: 5px;
        margin-top: 6px;
    }

    body.stpp-product-layout .summary .stpp-payment-options .stpp-payment-card {
        height: 56px !important;
        min-height: 56px !important;
        padding: 2px !important;
        border-radius: 6px !important;
    }

    body.stpp-product-layout .summary .stpp-payment-options .stpp-tbi-proxy__line {
        gap: 3px;
        font-size: 8.8px;
    }

    body.stpp-product-layout .summary .stpp-payment-options .stpp-tbi-proxy__logo {
        width: 18px;
        height: 18px;
        flex-basis: 18px;
        border-radius: 4px;
        font-size: 8px;
    }

    body.stpp-product-layout .summary .stpp-payment-options .stpp-tbi-proxy__price {
        font-size: 8px;
    }
}

@media (max-width: 380px) {
    body.stpp-product-layout .summary .stpp-payment-options {
        gap: 4px;
    }

    body.stpp-product-layout .summary .stpp-payment-options .stpp-payment-card {
        height: 52px !important;
        min-height: 52px !important;
    }

    body.stpp-product-layout .summary .stpp-payment-options .stpp-tbi-proxy__line {
        font-size: 8px;
    }

    body.stpp-product-layout .summary .stpp-payment-options .stpp-tbi-proxy__price {
        font-size: 7.4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.stpp-product-layout .summary .stpp-payment-options .stpp-payment-card {
        animation: none !important;
    }
}


/* v1.0.41 - Cardurile TBI / SEAP / plata in rate raman statice: fara contur luminos animat sau miscare la hover. */
/* v1.0.40 - CTA WhatsApp compact sub banda TBI / SEAP / plata in rate. */
body.stpp-product-layout .summary .stpp-summary-whatsapp-banner {
    --stpp-whatsapp-card-bg: #eaf7ee;
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100% !important;
    min-height: 52px;
    margin: 9px 0 0 !important;
    padding: 7px 15px !important;
    overflow: hidden;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    background:
        linear-gradient(var(--stpp-whatsapp-card-bg), var(--stpp-whatsapp-card-bg)) padding-box,
        conic-gradient(
            from var(--stpp-payment-ring-angle),
            rgba(16,121,70,.12) 0deg 245deg,
            rgba(16,121,70,.20) 266deg,
            #107946 296deg,
            #25c874 320deg,
            #8bf0b9 340deg,
            rgba(16,121,70,.12) 360deg
        ) border-box !important;
    color: #065f38 !important;
    text-decoration: none !important;
    box-shadow: 0 5px 14px rgba(16,121,70,.10) !important;
    isolation: isolate;
    animation: stpp-payment-ring-run 1.65s linear infinite !important;
    transition: transform .18s ease, box-shadow .18s ease !important;
}

body.stpp-product-layout .summary .stpp-summary-whatsapp-banner:hover {
    color: #034e2d !important;
    transform: translateY(-2px);
    box-shadow: 0 9px 20px rgba(16,121,70,.17) !important;
}

body.stpp-product-layout .summary .stpp-summary-whatsapp-banner:active {
    transform: translateY(0) scale(.99);
}

body.stpp-product-layout .summary .stpp-summary-whatsapp-banner__icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(16,121,70,.13);
}

body.stpp-product-layout .summary .stpp-summary-whatsapp-banner__icon::after {
    content: "";
    position: absolute;
    inset: -3px;
    border: 1px solid rgba(37,200,116,.24);
    border-radius: 11px;
    animation: stpp-summary-whatsapp-pulse 1.8s ease-out infinite;
    pointer-events: none;
}

body.stpp-product-layout .summary .stpp-summary-whatsapp-banner__icon img {
    display: block;
    width: 26px !important;
    height: 26px !important;
    max-width: 26px !important;
    max-height: 26px !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    object-fit: contain;
}

body.stpp-product-layout .summary .stpp-summary-whatsapp-banner__text {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    color: #074f30;
    font-size: 13.5px;
    line-height: 1.15;
    white-space: nowrap;
}

body.stpp-product-layout .summary .stpp-summary-whatsapp-banner__text strong {
    color: #07160d;
    font-size: inherit;
    font-weight: 700;
}

body.stpp-product-layout .summary .stpp-summary-whatsapp-banner__text span {
    color: #107946;
    font-size: inherit;
    font-weight: 700;
}

body.stpp-product-layout .summary .stpp-summary-whatsapp-banner__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    margin-left: 2px;
    border-radius: 50%;
    color: #107946;
    transition: transform .18s ease;
}

body.stpp-product-layout .summary .stpp-summary-whatsapp-banner:hover .stpp-summary-whatsapp-banner__arrow {
    transform: translateX(3px);
}

body.stpp-product-layout .summary .stpp-summary-whatsapp-banner__arrow svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@keyframes stpp-summary-whatsapp-pulse {
    0% { opacity: .62; transform: scale(.94); }
    72%, 100% { opacity: 0; transform: scale(1.18); }
}

@media (max-width: 767px) {
    body.stpp-product-layout .summary .stpp-summary-whatsapp-banner {
        min-height: 48px;
        margin-top: 7px !important;
        padding: 6px 10px !important;
        gap: 8px;
        border-radius: 7px !important;
    }

    body.stpp-product-layout .summary .stpp-summary-whatsapp-banner__icon {
        width: 31px;
        height: 31px;
        flex-basis: 31px;
        border-radius: 8px;
    }

    body.stpp-product-layout .summary .stpp-summary-whatsapp-banner__icon img {
        width: 23px !important;
        height: 23px !important;
        max-width: 23px !important;
        max-height: 23px !important;
    }

    body.stpp-product-layout .summary .stpp-summary-whatsapp-banner__text {
        gap: 4px;
        font-size: 12px;
    }

    body.stpp-product-layout .summary .stpp-summary-whatsapp-banner__arrow {
        width: 19px;
        height: 19px;
        flex-basis: 19px;
    }
}

@media (max-width: 370px) {
    body.stpp-product-layout .summary .stpp-summary-whatsapp-banner__text {
        flex-direction: column;
        align-items: flex-start;
        gap: 1px;
        font-size: 11.5px;
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.stpp-product-layout .summary .stpp-summary-whatsapp-banner,
    body.stpp-product-layout .summary .stpp-summary-whatsapp-banner__icon::after {
        animation: none !important;
    }
}
