/* ============================================================
 * Scoped Bootstrap Utilities — scoped inside .whc-bar
 * Replaces the full Bootstrap CDN to avoid overriding the theme
 * ============================================================ */

/* --- Flex Layout --- */

.whc-bar .d-flex           { display: flex !important; }
.whc-bar .flex-row         { flex-direction: row !important; }
.whc-bar .justify-content-between { justify-content: space-between !important; }
.whc-bar .align-items-center      { align-items: center !important; }
.whc-bar .h-100           { height: 100% !important; }

/* --- Buttons --- */
.whc-bar .btn {
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

/* btn-primary */
.whc-bar .btn-primary {
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
}
.whc-bar .btn-primary:hover {
    color: #fff;
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* btn-outline-primary */
.whc-bar .btn-outline-primary {
    color: #0d6efd;
    border-color: #0d6efd;
}
.whc-bar .btn-outline-primary:hover {
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* --- Text & Alignment --- */
.whc-bar .small {
    font-size: 1rem;
}

.whc-bar .align-middle {
    vertical-align: middle;
}

.whc-bar .z-1000 {
    z-index: 1000;
}

.whc-bar .text-white {
    color: #fff !important;
}

.whc-bar .text-black {
    color: #27283C !important;
}

/* ============================================================
 * Bar Component & Banner Styles
 * ============================================================ */

.whc-bar .ml-16 {
  margin-left: 16px;
}

.whc-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    z-index: 100000;
    padding: 0 20px;
    box-sizing: border-box;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.06);
    background: #FFF;
}

/* Ensure all plugin elements use border-box since global Bootstrap is gone */
.whc-bar,
.whc-bar *,
.whc-bar *::before,
.whc-bar *::after {
    box-sizing: border-box !important;
}

#custom-guest-top-bar {
    background: #0663DD !important;
}

.whc-bar .trial-visitor-btn {
    min-width: 88px !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    background: var(--warning-yellow, #FFC008) !important;
    font-weight: 700 !important;
    color: #27283C !important;
}

.whc-bar .countdown-client {
    font-weight: 700 !important;
}

.whc-bar .btn-manage,
.whc-bar .upgrade-to-paid {
    padding: 2px 8px !important;
}

.whc-bar .btn-text {
    color: var(--Interactive-Blue, #06F);
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 20px; /* 142.857% */
}

.whc-header-container {
    margin: 0;
    width: calc(100% - var(--admin-menu-width));
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    position: relative;
    left: var(--admin-menu-width);
    margin-left: -20px;
}

.whc-bar .site-setup-banner {
    display: flex;
    height: 60px;
    padding: 0 20px;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    background: #FFF;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.06);
    margin-bottom: 1px;
}

.whc-header-center {
    gap: 10px;
}

.whc-bar .site-setup-button {
    display: flex !important;
    height: 37px;
    min-width: 88px;
    padding: 18px 12px !important;
    justify-content: center !important;
    align-items: center;
    gap: 8px;
    border-radius: 4px !important;
    background: var(--Interaction-blue, #06F) !important;
    text-align: center;
    /* Body Text */
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
    font-size: 16px !important;
    font-style: normal;
    font-weight: 400;
    line-height: normal !important;
}

#admin-popup-overlay {
    top: 72px!important;
}

/* --- Misc & Overrides --- */
/* Button font ~13px */
.whc-bar .btn.btn-smaller {
    font-size: 0.8125rem; /* ~13px */
}

/* --- Responsive --- */
/* Countdown hidden on narrow screens (below 890px) */
@media (max-width: 890px) {
    #custom-guest-top-bar .countdown-text {
        display: none;
    }
}

/* Hide logo and branding below 710px */
@media (max-width: 710px) {
    #custom-guest-top-bar .logo-div,
    #custom-guest-top-bar .branding-text {
        display: none;
    }

    /* Add period after base sentence when branding is hidden */
    #custom-guest-top-bar .upsell-text.visitor-content::after {
        content: ".";
    }
}