/* ==========================================================================
   Globe Boss Subscribers — frontend styles (v1.4 hardened)
   Every popup rule uses !important on sizing/typography to defeat aggressive
   theme CSS. Selectors are doubled (e.g. .gboss-popup.gboss-popup) to bump
   specificity above any theme rule that targets buttons/inputs globally.
   ========================================================================== */

:root {
    --gboss-gold:        #8b6f47;
    --gboss-gold-hover:  #a0825a;
    --gboss-gold-dark:   #6b5535;
    --gboss-gold-soft:   rgba(139, 111, 71, 0.12);
    --gboss-ink:         #1a1a1a;
    --gboss-text:        #333333;
    --gboss-text-soft:   #666666;
    --gboss-line:        #e5e0d8;
    --gboss-card:        #ffffff;
    --gboss-card-soft:   #faf8f4;
}

/* ==========================================================================
   INLINE FORM (shortcode / widget)
   ========================================================================== */
.gboss-subs-form:not(.gboss-popup-form) {
    background: var(--gboss-card);
    border: 1px solid var(--gboss-line);
    border-radius: 6px;
    padding: 24px 22px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    color: var(--gboss-text);
    max-width: 400px;
    box-sizing: border-box;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.03);
}
.gboss-subs-form:not(.gboss-popup-form) *,
.gboss-subs-form:not(.gboss-popup-form) *::before,
.gboss-subs-form:not(.gboss-popup-form) *::after { box-sizing: border-box; }

.gboss-subs-form:not(.gboss-popup-form) .gboss-brand {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 10px; font-weight: 700; letter-spacing: 2.5px;
    color: var(--gboss-gold); margin-bottom: 12px; text-transform: uppercase;
}
.gboss-subs-form:not(.gboss-popup-form) .gboss-dot {
    width: 6px; height: 6px; background: var(--gboss-gold); border-radius: 50%;
}
.gboss-subs-form:not(.gboss-popup-form) .gboss-headline {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px; line-height: 1.25; margin: 0 0 8px;
    font-weight: 400; color: var(--gboss-ink); letter-spacing: -0.01em;
}
.gboss-subs-form:not(.gboss-popup-form) .gboss-subhead {
    font-size: 13px; line-height: 1.55; color: var(--gboss-text-soft); margin: 0 0 16px;
}
.gboss-subs-form:not(.gboss-popup-form) input[type="email"] {
    width: 100%; padding: 12px 14px; font-size: 14px;
    background: var(--gboss-card-soft); border: 1px solid var(--gboss-line);
    border-radius: 3px; color: var(--gboss-ink); font-family: inherit;
    margin-bottom: 10px; -webkit-appearance: none; appearance: none;
}
.gboss-subs-form:not(.gboss-popup-form) input[type="email"]:focus {
    outline: none; border-color: var(--gboss-gold); background: #ffffff;
}
.gboss-subs-form:not(.gboss-popup-form) input[type="email"]::placeholder { color: #b0a99c; }
.gboss-subs-form:not(.gboss-popup-form) button[type="submit"] {
    width: 100%; padding: 12px 18px;
    background: var(--gboss-gold); color: #ffffff;
    border: 1px solid var(--gboss-gold); border-radius: 3px;
    font-size: 11px; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; cursor: pointer; font-family: inherit;
    -webkit-appearance: none; appearance: none;
    min-height: 44px; touch-action: manipulation;
}
.gboss-subs-form:not(.gboss-popup-form) button[type="submit"]:hover {
    background: var(--gboss-gold-hover); border-color: var(--gboss-gold-hover);
}
.gboss-subs-form:not(.gboss-popup-form) .gboss-msg {
    margin-top: 10px; font-size: 12px; text-align: center; min-height: 1.2em; color: var(--gboss-text-soft);
}
.gboss-subs-form:not(.gboss-popup-form) .gboss-msg.ok    { color: #2c7a4d; font-weight: 600; }
.gboss-subs-form:not(.gboss-popup-form) .gboss-msg.error { color: #b03a3a; font-weight: 600; }
.gboss-subs-form:not(.gboss-popup-form) .gboss-fineprint {
    margin: 10px 0 0; font-size: 11px; text-align: center; color: #999; letter-spacing: 0.2px;
}
.gboss-subs-compact .gboss-row { display: flex; gap: 8px; }
.gboss-subs-compact input[type="email"] { margin-bottom: 0 !important; flex: 1; }
.gboss-subs-compact button[type="submit"] { width: auto !important; white-space: nowrap; padding-left: 22px !important; padding-right: 22px !important; }

/* ==========================================================================
   POPUP — hardened against theme bleed-through.
   All sizing/spacing properties carry !important. Selectors are doubled
   (e.g. .gboss-popup.gboss-popup) to outrank theme rules.
   ========================================================================== */

.gboss-popup.gboss-popup {
    position: fixed !important;
    bottom: 20px !important;
    left: 20px !important;
    right: auto !important;
    top: auto !important;
    width: 300px !important;
    max-width: calc(100vw - 24px) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    background: var(--gboss-card) !important;
    color: var(--gboss-text) !important;
    border: 1px solid var(--gboss-line) !important;
    border-radius: 6px !important;
    padding: 20px 20px 16px !important;
    margin: 0 !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    z-index: 9998 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    box-sizing: border-box !important;
    transform: translateY(120%);
    opacity: 0;
    visibility: hidden;
    transition: transform .45s cubic-bezier(.16, 1, .3, 1), opacity .35s, visibility .35s;
    overflow: hidden !important;
}
.gboss-popup.gboss-popup *,
.gboss-popup.gboss-popup *::before,
.gboss-popup.gboss-popup *::after { box-sizing: border-box !important; }

.gboss-popup.gboss-popup.is-visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.gboss-popup.gboss-popup::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important; left: 0 !important; right: 0 !important;
    height: 3px !important;
    background: var(--gboss-gold) !important;
    width: auto !important;
}

.gboss-popup.gboss-popup .gboss-popup-close {
    position: absolute !important;
    top: 6px !important;
    right: 6px !important;
    width: 28px !important;
    height: 28px !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 4px !important;
    color: #b0a99c !important;
    font-size: 20px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 2 !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-weight: 400 !important;
    min-height: 0 !important;
    touch-action: manipulation;
}
.gboss-popup.gboss-popup .gboss-popup-close:hover {
    color: var(--gboss-gold) !important;
    background: var(--gboss-gold-soft) !important;
}

.gboss-popup.gboss-popup .gboss-brand {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    font-size: 10px !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    color: var(--gboss-gold) !important;
    font-weight: 700 !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    line-height: 1 !important;
}
.gboss-popup.gboss-popup .gboss-dot {
    display: inline-block !important;
    width: 6px !important;
    height: 6px !important;
    background: var(--gboss-gold) !important;
    border-radius: 50% !important;
    margin: 0 !important;
    padding: 0 !important;
}
.gboss-popup.gboss-popup .gboss-headline {
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 17px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    color: var(--gboss-ink) !important;
    margin: 0 0 6px !important;
    padding: 0 !important;
    letter-spacing: -0.01em !important;
    text-transform: none !important;
}
.gboss-popup.gboss-popup .gboss-subhead {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    color: var(--gboss-text-soft) !important;
    margin: 0 0 11px !important;
    padding: 0 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-weight: 400 !important;
}

.gboss-popup.gboss-popup .gboss-popup-form {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    width: auto !important;
    max-width: none !important;
}

.gboss-popup.gboss-popup .gboss-popup-form input[type="email"] {
    width: 100% !important;
    padding: 10px 12px !important;
    font-size: 16px !important;
    background: var(--gboss-card-soft) !important;
    border: 1px solid var(--gboss-line) !important;
    border-radius: 3px !important;
    color: var(--gboss-ink) !important;
    font-family: inherit !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    margin: 0 0 7px !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-sizing: border-box !important;
}
.gboss-popup.gboss-popup .gboss-popup-form input[type="email"]::placeholder {
    color: #b0a99c !important;
    text-transform: none !important;
    font-size: 14px !important;
}
.gboss-popup.gboss-popup .gboss-popup-form input[type="email"]:focus {
    outline: none !important;
    border-color: var(--gboss-gold) !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

.gboss-popup.gboss-popup .gboss-popup-form button[type="submit"] {
    display: block !important;
    width: 100% !important;
    padding: 11px 16px !important;
    background: var(--gboss-gold) !important;
    color: #ffffff !important;
    border: 1px solid var(--gboss-gold) !important;
    border-radius: 3px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 1.8px !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    text-align: center !important;
    cursor: pointer !important;
    font-family: inherit !important;
    margin: 0 !important;
    height: auto !important;
    min-height: 42px !important;
    max-height: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    position: relative !important;
    z-index: 3 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-sizing: border-box !important;
    touch-action: manipulation;
}
.gboss-popup.gboss-popup .gboss-popup-form button[type="submit"]:hover {
    background: var(--gboss-gold-hover) !important;
    border-color: var(--gboss-gold-hover) !important;
    color: #ffffff !important;
}
.gboss-popup.gboss-popup .gboss-popup-form button[type="submit"]:active {
    background: var(--gboss-gold-dark) !important;
}
.gboss-popup.gboss-popup .gboss-popup-form button[type="submit"]:disabled {
    opacity: 0.6 !important;
    cursor: wait !important;
}

.gboss-popup.gboss-popup .gboss-popup-form .gboss-msg {
    margin: 7px 0 0 !important;
    padding: 0 !important;
    font-size: 11px !important;
    text-align: center !important;
    min-height: 1.2em !important;
    color: var(--gboss-text-soft) !important;
    background: transparent !important;
    border: 0 !important;
}
.gboss-popup.gboss-popup .gboss-popup-form .gboss-msg.ok    { color: #2c7a4d !important; font-weight: 600 !important; }
.gboss-popup.gboss-popup .gboss-popup-form .gboss-msg.error { color: #b03a3a !important; font-weight: 600 !important; }

.gboss-popup.gboss-popup .gboss-fineprint {
    margin: 9px 0 0 !important;
    padding: 0 !important;
    font-size: 10px !important;
    text-align: center !important;
    color: #999 !important;
    letter-spacing: 0.2px !important;
    line-height: 1.3 !important;
    text-transform: none !important;
    font-weight: 400 !important;
}

/* ==========================================================================
   MOBILE / TABLET — compact, doesn't dominate the viewport
   ========================================================================== */
@media (max-width: 768px) {
    .gboss-popup.gboss-popup {
        width: 270px !important;
        max-width: calc(100vw - 24px) !important;
        left: 12px !important;
        right: auto !important;
        bottom: 12px !important;
        padding: 13px 13px 11px !important;
        border-radius: 6px !important;
    }
    .gboss-popup.gboss-popup::before { height: 2px !important; }

    .gboss-popup.gboss-popup .gboss-brand {
        font-size: 9px !important;
        letter-spacing: 1.8px !important;
        margin: 0 0 5px !important;
        gap: 6px !important;
    }
    .gboss-popup.gboss-popup .gboss-dot {
        width: 5px !important;
        height: 5px !important;
    }
    .gboss-popup.gboss-popup .gboss-headline {
        font-size: 14px !important;
        line-height: 1.2 !important;
        margin: 0 0 4px !important;
    }
    .gboss-popup.gboss-popup .gboss-subhead {
        font-size: 10.5px !important;
        line-height: 1.4 !important;
        margin: 0 0 8px !important;
    }
    .gboss-popup.gboss-popup .gboss-popup-form input[type="email"] {
        padding: 8px 10px !important;
        font-size: 16px !important;
        margin: 0 0 5px !important;
    }
    .gboss-popup.gboss-popup .gboss-popup-form input[type="email"]::placeholder {
        font-size: 13px !important;
    }
    .gboss-popup.gboss-popup .gboss-popup-form button[type="submit"] {
        padding: 9px 12px !important;
        font-size: 10px !important;
        letter-spacing: 1.3px !important;
        min-height: 38px !important;
    }
    .gboss-popup.gboss-popup .gboss-popup-form .gboss-msg {
        font-size: 10px !important;
        margin: 5px 0 0 !important;
    }
    .gboss-popup.gboss-popup .gboss-fineprint { display: none !important; }

    .gboss-popup.gboss-popup .gboss-popup-close {
        top: 3px !important;
        right: 3px !important;
        width: 24px !important;
        height: 24px !important;
        font-size: 17px !important;
    }
}

@media (max-width: 360px) {
    .gboss-popup.gboss-popup {
        width: 250px !important;
        padding: 11px 11px 9px !important;
    }
    .gboss-popup.gboss-popup .gboss-headline { font-size: 13px !important; }
    .gboss-popup.gboss-popup .gboss-subhead  { font-size: 10px !important; margin: 0 0 7px !important; }
}
