/* Global Popup Banner — front-end styles */

#gp-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
    box-shadow: 0 2px 16px rgba(0,0,0,.25);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform .38s cubic-bezier(.22,1,.36,1), opacity .38s cubic-bezier(.22,1,.36,1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

#gp-banner.gp-visible {
    transform: translateY(0);
    opacity: 1;
}


/* .gp-inner gets color via inline style; background is on #gp-banner via inline style too */
.gp-inner {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding: 13px 56px 13px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Close button — inside .gp-inner, absolutely positioned ── */
.gp-close {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.15);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    /* color set via inline style */
    transition: background .2s, transform .2s;
    flex-shrink: 0;
    line-height: 1;
}
.gp-close:hover {
    background: rgba(255,255,255,.30);
    transform: translateY(-50%) scale(1.1);
}
.gp-close:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* ── Text only ── */
.gp-text-wrap {
    text-align: center;
    max-width: 860px;
    width: 100%;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.gp-banner-text {
    color: inherit;
}
.gp-banner-link {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
    transition: opacity .2s;
}
.gp-banner-link:hover { opacity: .75; color: inherit; text-decoration: underline; }

/* ── Text + Icons layout ── */
.gp-icons-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    max-width: 1100px;
}
.gp-text-side {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1 1 auto;
}
.gp-title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: inherit;
}
.gp-body {
    display: block;
    font-size: 13px;
    color: inherit;
    opacity: .85;
}
.gp-icons-side {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}
.gp-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    color: inherit;
    text-decoration: none;
    transition: background .2s, transform .2s;
    flex-shrink: 0;
}
.gp-icon-link:hover {
    background: rgba(255,255,255,.30);
    transform: translateY(-2px);
    color: inherit;
    text-decoration: none;
}
.gp-icon-link svg { display: block; pointer-events: none; }
.gp-icon-empty {
    border: 2px dashed rgba(255,255,255,.35);
    background: transparent;
    font-size: 18px;
}

@media (max-width: 680px) {
    .gp-inner { padding: 12px 52px 12px 16px; }
    .gp-icons-layout { flex-direction: column; align-items: flex-start; gap: 10px; }
    .gp-icons-side { gap: 8px; }
    .gp-icon-link { width: 32px; height: 32px; }
}

/* ── Custom layout overrides ───────────────────────────── */
.gp-inner {
    max-width: 650px;
    border-radius: 9px;
    padding: 8px 16px;
    display: flex;
    margin-left: 28px;
    justify-content: flex-start;
    margin-bottom: 10px;
}
#gp-banner {
    display: flex;
    justify-content: center;
    box-shadow: unset;
    padding-top: 10px;
}
.gp-inner .gp-text-wrap {
    justify-content: flex-start;
}
.gp-inner .gp-banner-text {
    font-size: 16px;
}
.gp-inner .gp-text-wrap a {
    font-size: 16px;
    font-weight: 400;
}
.gp-inner .gp-close {
    background: unset !important;
    transform: translateY(-50%) !important;
}
.gp-inner .gp-icons-side {
    padding-right: 30px;
}
.gp-inner .gp-icon-link {
    background: unset;
    width: 24px;
    height: 24px;
}
.gp-inner .gp-icon-link svg {
    width: 20px;
    height: 20px;
}
.gp-inner .gp-icon-link[aria-label="Instagram"] {
    width: 18px;
    height: 18px;
}
.gp-inner .gp-icon-link[aria-label="X"] {
    width: 18px;
    height: 18px;
}
.gp-inner .gp-title {
    font-size: 16px;
}
.gp-inner .gp-body {
    font-size: 14px;
}
.gp-text-wrap {
    max-width: 90%;
    text-align: left;
}
.banner nav span {
    color: inherit;
}
@media (max-width: 1280px) {
    nav {
        margin-top: 80px;
    }
    #gp-banner {
        background: #fff;
        padding-bottom: 10px;
    }
}
@media (max-width: 768px) {
    .gp-inner {
        margin-left: 0;
    }
    .gp-icons-layout {
        max-width: 90%;
    }
    #gp-banner {
        position: relative;
        padding-left: 14px;
        padding-right: 14px;
    }
    header {
        display: flex;
        flex-direction: column-reverse;
        width: 100%;
    }
    header nav {
        position: relative !important;
        margin-top: 0 !important;
    }
    .gp-close {
        top: 50%;
    }
    .gp-icons-layout {
        gap: 16px;
    }
}

.gp-inner a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
}
