/* === PROFALAT CART MODAL === */

/* Alap WooCommerce notice elrejtése amikor add-to-cart akció történt */
.woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-message,
.wc-block-components-notice-banner.is-success {
    display: none !important;
}

/* Modal alap - rejtett */
.profalat-cart-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    font-family: inherit;
}

.profalat-cart-modal.is-open {
    display: flex;
    animation: profalatModalFadeIn 0.25s ease;
}

@keyframes profalatModalFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Sötét háttér */
.profalat-cart-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 20, 30, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
}

/* Modal doboz */
.profalat-cart-modal__dialog {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 35px 35px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    text-align: center;
    box-sizing: border-box;
    animation: profalatModalSlideUp 0.3s ease;
}

@keyframes profalatModalSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

/* Bezáró X */
.profalat-cart-modal .profalat-cart-modal__close,
.profalat-cart-modal button.profalat-cart-modal__close {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    background: rgba(0, 42, 58, 0.06) !important;
    border: none !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    border-radius: 50% !important;
    color: #002a3a !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    font-size: inherit !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
}

.profalat-cart-modal .profalat-cart-modal__close:hover,
.profalat-cart-modal button.profalat-cart-modal__close:hover {
    background: #f03142 !important;
    color: #ffffff !important;
    transform: rotate(90deg) !important;
}

.profalat-cart-modal .profalat-cart-modal__close svg {
    width: 20px !important;
    height: 20px !important;
    display: block !important;
}

/* Sikeresen pipa ikon */
.profalat-cart-modal__icon {
    width: 72px;
    height: 72px;
    background: #f03142;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 10px 25px rgba(240, 49, 66, 0.3);
    animation: profalatModalPop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes profalatModalPop {
    0%   { transform: scale(0); }
    100% { transform: scale(1); }
}

/* Szövegek */
.profalat-cart-modal__title {
    font-size: 22px;
    font-weight: 800;
    color: #002a3a;
    margin: 0 0 6px;
    line-height: 1.2;
}

.profalat-cart-modal__subtitle {
    font-size: 14.5px;
    color: #718096;
    margin: 0 0 25px;
    line-height: 1.4;
}

/* Gombok */
.profalat-cart-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profalat-cart-modal__btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    border: none;
    font-family: inherit;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.profalat-cart-modal__btn--primary {
    background: #f03142 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(240, 49, 66, 0.25);
}

.profalat-cart-modal__btn--primary:hover,
.profalat-cart-modal__btn--primary:focus {
    background: #d62434 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(240, 49, 66, 0.35);
    text-decoration: none !important;
}

.profalat-cart-modal .profalat-cart-modal__btn--secondary,
.profalat-cart-modal button.profalat-cart-modal__btn--secondary {
    background: rgba(0, 42, 58, 0.06) !important;
    color: #002a3a !important;
    box-shadow: none !important;
}

.profalat-cart-modal .profalat-cart-modal__btn--secondary:hover,
.profalat-cart-modal .profalat-cart-modal__btn--secondary:focus,
.profalat-cart-modal button.profalat-cart-modal__btn--secondary:hover,
.profalat-cart-modal button.profalat-cart-modal__btn--secondary:focus {
    background: rgba(0, 42, 58, 0.12) !important;
    color: #002a3a !important;
}

/* === MOBIL === */
@media (max-width: 480px) {
    .profalat-cart-modal {
        padding: 16px;
    }
    .profalat-cart-modal__dialog {
        padding: 35px 25px 28px;
        border-radius: 18px;
    }
    .profalat-cart-modal__title {
        font-size: 20px;
    }
    .profalat-cart-modal__subtitle {
        font-size: 13.5px;
    }
    .profalat-cart-modal__icon {
        width: 64px;
        height: 64px;
    }
    .profalat-cart-modal__icon svg {
        width: 40px;
        height: 40px;
    }
    .profalat-cart-modal__btn {
        padding: 13px 16px;
        font-size: 14.5px;
    }
}

/* Body scroll lock amikor modal nyitva */
body.profalat-modal-open {
    overflow: hidden;
}
