/* ------------------------------------------------------------------------
   Shop-referral widget ("Zum Shop") — Trello #2624 — einfachgeniessen.de
   Fixed bottom-right card driving visitors to the shop (einfachweinkaufen.de).
   Hidden by default; assets/eg/js/shop-referral-widget.js adds .is-visible
   when the 30-day dismissal cookie is absent.
   All selectors are scoped under .eg-shop-referral (no global bleed).
   ------------------------------------------------------------------------ */
.eg-shop-referral {
    --eg-referral-coral: #DE5B5B;
    --eg-referral-coral-hover: #CF4E4E;
    --eg-referral-ink: #1D1D1B;
    display: none; /* revealed by JS when not dismissed */
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1030; /* above content, below Bootstrap modals (1050+) */
    width: 340px;
    max-width: calc(100vw - 32px);
    box-sizing: border-box;
    padding: 26px 28px 28px;
    background: #ffffff;
    border-radius: 26px;
    box-shadow: 0 18px 50px rgba(29, 29, 27, 0.18);
    /* Inherit the site's own font (Poppins) — no custom stack. */
    -webkit-font-smoothing: antialiased;
}

.eg-shop-referral.is-visible {
    display: block;
    animation: eg-referral-in 0.35s ease both;
}

@keyframes eg-referral-in {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .eg-shop-referral.is-visible { animation: none; }
}

.eg-shop-referral__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--eg-referral-ink);
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.15s ease;
}

.eg-shop-referral__close:hover,
.eg-shop-referral__close:focus-visible {
    background: rgba(29, 29, 27, 0.07);
}

.eg-shop-referral__label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 34px 14px 0; /* keep clear of the close button */
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
    color: var(--eg-referral-ink);
}

.eg-shop-referral__pin {
    flex: 0 0 auto;
    color: var(--eg-referral-coral);
}

.eg-shop-referral__title {
    margin: 0 0 20px;
    font-size: 38px;
    line-height: 1.1;
    font-weight: 300; /* matches the site's light display headings */
    color: var(--eg-referral-ink);
}

.eg-shop-referral__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 22px;
    border: 0;
    border-radius: 999px;
    background: var(--eg-referral-coral);
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.eg-shop-referral__btn:hover,
.eg-shop-referral__btn:focus {
    background: var(--eg-referral-coral-hover);
    color: #ffffff;
    text-decoration: none;
    border: 0;
}

.eg-shop-referral__btn svg {
    flex: 0 0 auto;
}

/* Phones — smaller card, tighter offsets so it doesn't cover content/CTAs */
@media (max-width: 575.98px) {
    .eg-shop-referral {
        right: 14px;
        bottom: 14px;
        width: auto;
        max-width: calc(100vw - 28px);
        padding: 20px 20px 22px;
        border-radius: 20px;
    }
    .eg-shop-referral__title {
        font-size: 27px;
        margin-bottom: 16px;
    }
    .eg-shop-referral__label {
        font-size: 12px;
    }
    .eg-shop-referral__btn {
        font-size: 16px;
        padding: 13px 18px;
    }
}
