/* Overlay całego ekranu */
#makey-hideprice-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none; /* pokażemy JS-em */
    align-items: center;
    justify-content: center;
    background-color: rgba(15, 23, 42, 0.5); /* coś w stylu bg-slate-900/50 */
}

/* Klikalny background do zamykania */
.makey-hideprice-modal__backdrop {
    position: absolute;
    inset: 0;
}

/* Główne pudełko modala */
.makey-hideprice-modal__dialog {
    position: relative;
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.35);
    width: 100%;
    max-width: 770px; /* desktop */
    max-height: 90vh;
    margin: 0 1rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 2vw;
    border-radius: 0.5rem;
}

/* Nagłówek */
.makey-hideprice-modal__header {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
}

/* Body z iframe'em */
.makey-hideprice-modal__body {
    flex: 1;
    overflow: hidden;
}

/* Iframe – niech zajmuje sensowną wysokość */
.makey-hideprice-modal__iframe {
    width: 100%;
    height: 65vh; /* realna wysokość – działa, bo to czysty CSS */
    border: 0;
}

/* Przycisk X */
.makey-hideprice-modal__close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    border: none;
    background: transparent;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
}

.makey-hideprice-modal__close:hover {
    color: #0f172a;
}

div.webforms-hyva > div > h1 {
    text-align: center;
}

div.webforms-hyva > div {
    flex-direction: column !important;
}

.swal2-container {
    z-index: 11000 !important; /* wyżej niż #makey-hideprice-modal (9999) i/lub tingle */
}

.hide-price-text {
    font-size: 1rem;
    line-height: 1.75rem;
}

/* ======= PLP / LISTING – ANTY-MRUGANIE ======= */

/* ---- CENA UKRYTA (hide_price = 1) ---- */
.product-item[data-hide_price="1"] .price-box,
.product-item[data-hide_price="true"] .price-box {
    visibility: hidden;
}

/* ---- ADD TO CART UKRYTY (hide_add_to_cart = 1 lub hide_price = 1) ---- */
/* security */
.product-item[data-hide_add_to_cart="1"] button[data-addto="cart"],
.product-item[data-hide_add_to_cart="true"] button[data-addto="cart"],
.product-item[data-hide_price="1"] button[data-addto="cart"],
.product-item[data-hide_price="true"] button[data-addto="cart"],
    /* hyva */
.product-item[data-hide_add_to_cart="1"] button.btn-primary[type="submit"],
.product-item[data-hide_add_to_cart="true"] button.btn-primary[type="submit"],
.product-item[data-hide_price="1"] button.btn-primary[type="submit"],
.product-item[data-hide_price="true"] button.btn-primary[type="submit"],
    /* na wszelki wypadek Luma / inne */
.product-item[data-hide_add_to_cart="1"] button.btn-primary[data-role="tocart"],
.product-item[data-hide_add_to_cart="true"] button.btn-primary[data-role="tocart"],
.product-item[data-hide_price="1"] button.btn-primary[data-role="tocart"],
.product-item[data-hide_price="true"] button.btn-primary[data-role="tocart"] {
    visibility: hidden;
}

/* komunikat zamiast ceny – jak miałeś */
.hide-price-text {
    font-size: 1rem;
    line-height: 1.75rem;
}

/* Mobile – prawie pełny ekran, ale z małym marginesem */
@media (max-width: 640px) {
    .makey-hideprice-modal__dialog {
        max-width: 100%;
        margin: 0 0.5rem;
        border-radius: 0.5rem;
        padding: 2vw;
        flex-direction: column;
    }

    .makey-hideprice-modal__iframe {
        height: 75vh;
    }
}


