/**
 * 2010-2026 SwissGeek | Web Developer Freelance
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to a commercial proprietary license (EULA)
 * that is bundled with this package in the file LICENSE.md.
 * It is also available worldwide at this URL:
 * https://swissgeek.dev/license/
 * If you did not receive a copy of the license and are unable to obtain it
 * online, please send an email to license@swissgeek.dev so we can send you
 * a copy immediately.
 *
 * @Module       SGKPopUp
 * @Version      1.0.0
 * @Copyright    Copyright (c) 2010-2026 - SwissGeek | Web Developer Freelance <https://swissgeek.dev/> Tous droits réservés.
 * @License      Valid for 1 website (or project) for each purchase of license. More information on <https://swissgeek.dev/license/>
 */

.sgkpopup-block {
    background-size: cover;
    max-width: 680px;
    margin: 0 auto;
}

.sgkpopup-inner {
    padding: 8px;
}

.sgkpopup-block .sgkpopup-rte {
    text-align: center;
}

.sgkpopup-block img {
    height: auto !important;
    max-width: 100% !important;
}

.sgkpopup-section {
    padding: 16px 8px 4px;
    text-align: center;
}

.sgkpopup-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 12px;
    text-align: center;
}

.sgkpopup-form {
    max-width: 420px;
    margin: 0 auto;
    text-align: left;
}

.sgkpopup-field {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
}

.sgkpopup-field label {
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.sgkpopup-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cfcfcf;
    border-radius: 8px;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.sgkpopup-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 8px 0 14px;
    font-size: 0.85rem;
}

.sgkpopup-btn {
    display: inline-block;
    width: 100%;
    padding: 12px 18px;
    border: 0;
    border-radius: 8px;
    background: #d41414;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.15s ease;
}

.sgkpopup-btn:hover {
    filter: brightness(1.08);
}

.sgkpopup-alert {
    margin: 12px auto 0;
    max-width: 420px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
}

.sgkpopup-alert--success {
    background: #e5f6ec;
    color: #1c6b3c;
}

.sgkpopup-alert--warning {
    background: #fdeaea;
    color: #a11c1c;
}

/* Fancybox layout tuning */
.fancybox-slide > * {
    margin: 0 !important;
    overflow: hidden;
}

.fancybox-inner {
    overflow: hidden !important;
}

/* Responsive */
@media (max-width: 680px) {
    .sgkpopup-block {
        max-width: 100%;
    }
    .sgkpopup-title {
        font-size: 1.05rem;
    }
}

@media (max-width: 420px) {
    .sgkpopup-btn,
    .sgkpopup-field input {
        font-size: 0.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sgkpopup-btn {
        transition: none;
    }
}
