/* ==========================================================================
   Fomaco App Buttons — Frontend Styles
   (Klassen & Werte identisch mit dem Fomaco Hero Block)
   ========================================================================== */

/* ── Desktop Button ───────────────────────────────────────────────── */

.fomaco_wrap {
    text-align: center;
}

.fomaco_hero-button {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color .3s ease;
    cursor: pointer;
    border: none;
    line-height: 1.4;
    font-family: inherit;
    max-width: 400px;
}

.fomaco_wrap .fomaco_hero-button:hover {
    background-color: #163C6C !important;
}

.fomaco_wrap button.fomaco_popup-close:focus {
    color: #333;
}

/* shown on desktop, hidden on mobile */
.fomaco_hero-button--desktop {
    display: inline-block;
}

/* ── App-Store Badges (Mobile only) ──────────────────────────────── */

.fomaco_hero-app-buttons {
    display: none; /* hidden by default (desktop) */
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 4px;
}

.fomaco_app-store-badge {
    display: inline-block;
    line-height: 0;
    transition: opacity .2s ease;
}

.fomaco_app-store-badge:hover {
    opacity: .85;
}

.fomaco_app-store-badge img {
    height: 44px;
    width: auto;
    display: block;
}

/* ── Responsive ───────────────────────────────────────────────────── */

@media (max-width: 860px) {
    .fomaco_hero-button--desktop {
        display: none !important;
    }

    .fomaco_hero-app-buttons {
        display: flex;
    }
}

/* ── Popup Overlay ────────────────────────────────────────────────── */

.fomaco_popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.fomaco_popup-overlay.is-open {
    display: flex;
}

body.fomaco-popup-open {
    overflow: hidden;
}

.fomaco_popup-modal {
    background: #D9D9D9;
    border-radius: 16px;
    padding: 72px 28px 28px;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.18);
    text-align: center;
    animation: fomaco-popup-in .2s ease;
}

@keyframes fomaco-popup-in {
    from { opacity: 0; transform: scale(.95) translateY(10px); }
    to   { opacity: 1; transform: scale(1)  translateY(0); }
}

.fomaco_popup-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background-color: #fff !important;
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    color: #888;
    cursor: pointer;
    border-radius: 4px;
    transition: color .2s;
    width: 40px !important;
    height: 40px;
    border-radius: 50%;
    padding: 0 !important;
}

.fomaco_popup-close:hover {
    color: #333;
}

.fomaco_popup-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #263154;
    margin: 0 0 10px;
    line-height: 1.4;
}

.fomaco_popup-subtext {
    font-size: 0.88rem;
    color: #263154;
    margin: 0 0 20px;
    line-height: 1.6;
}

.fomaco_popup-qr {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 20px;
    margin: 0 auto 24px;
    max-width: 240px;
}

.fomaco_popup-qr img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.fomaco_popup-qr--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: #aaa;
    font-size: 0.85rem;
}