/* ==========================
   LIST YOUR SHOP POPUP
   Global promotional modal inviting coffee shop owners to get in touch about
   listing their shop — shown once per visitor after a short delay, then
   remembered via localStorage so it doesn't nag on every page load (see
   assets/js/list-shop-popup.js). Markup lives in footer.php, only rendered
   when a Contact page actually exists to link to (same graceful-omission
   pattern the footer's own "Contact Us" link already uses).
========================== */

.list-shop-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.list-shop-modal[hidden] {
    display: none;
}

.list-shop-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(42, 27, 18, 0.45);
}

.list-shop-modal__panel {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    text-align: center;
    animation: kape-list-shop-modal-in 0.25s ease;
}

.list-shop-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--color-text-light);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.list-shop-modal__close:hover {
    background: rgba(251, 146, 60, 0.14);
    color: var(--color-accent);
}

.list-shop-modal__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 auto 1rem;
    border-radius: 999px;
    background: var(--color-secondary);
    color: var(--color-primary);
}

.list-shop-modal__title {
    margin: 0 0 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-text-dark);
}

.list-shop-modal__body {
    margin: 0 0 1.5rem;
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.list-shop-modal__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.list-shop-modal__actions .btn {
    width: 100%;
    justify-content: center;
}

.list-shop-modal__dismiss {
    /* GeneratePress's core stylesheet sets -webkit-appearance:button (plus a
       grey background) on every bare <button> — background is overridden
       below via a class selector, but -webkit-appearance was never touched,
       so the browser was still rendering native button chrome (a shaded
       hover/active state) underneath. appearance:none strips that. */
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: transparent;
    padding: 0;
    font: inherit;
    font-size: 0.85rem;
    color: var(--color-text-light);
    cursor: pointer;
    text-decoration: underline;
}

.list-shop-modal__dismiss:hover {
    background: transparent;
    color: var(--color-accent);
}

.list-shop-modal__alt {
    margin: 1.25rem 0 0;
    font-size: 0.82rem;
    color: var(--color-text-light);
}

.list-shop-modal__alt a {
    color: var(--color-accent);
    font-weight: 600;
}

@keyframes kape-list-shop-modal-in {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .list-shop-modal__panel {
        animation: none;
    }
}
