/*
Theme Name: bannez-child
Theme URI: https://bannez.com/
Description: Custom child theme for Bannez, built on the Micro Jobs Theme (MJ10). All Bannez-specific design and template customizations should be added here so the parent theme can be updated safely.
Author: Bannez
Author URI: https://bannez.com/
Template: MJ10
Version: 1.0.0
Text Domain: bannez-child
*/

/*
 * Bannez Child Theme
 * ---------------------------------------------------------
 * Parent theme: Micro Jobs Theme (MJ10)
 * Brand colors:
 *   Dark:   #1F2937
 *   Orange: #FA842E
 */

/* =========================================================
   1) CLEAN AGENCY HEADER
   ========================================================= */

header[data-block-id="header"] {
    overflow: visible !important;
}

/* Remove the thin marketplace-style top bar. */
header[data-block-id="header"] > .elementor_topmenu {
    display: none !important;
}

/* Logged-in users should never see Sign In / Sign Up in the main menu. */
body.logged-in .signin-link,
body.logged-in .register-link {
    display: none !important;
}

/* =========================================================
   2) PROFILE ICON HOVER MENU
   ========================================================= */

header[data-block-id="header"] .bannez-profile-dropdown-wrap {
    position: relative !important;
    z-index: 9999;
}

header[data-block-id="header"] .bannez-profile-trigger {
    display: block;
    position: relative;
}

.bannez-profile-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 190px;
    padding: 8px;
    margin: 0;
    list-style: none;
    background: #fff;
    border: 1px solid rgba(31, 41, 55, 0.10);
    border-radius: 10px;
    box-shadow: 0 14px 40px rgba(31, 41, 55, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    z-index: 10000;
}

.bannez-profile-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
}

.bannez-profile-dropdown-wrap:hover .bannez-profile-menu,
.bannez-profile-dropdown-wrap:focus-within .bannez-profile-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.bannez-profile-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #1F2937 !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    border-radius: 7px;
    transition: background .18s ease, color .18s ease, padding-left .18s ease;
}

.bannez-profile-menu a i {
    width: 16px;
    text-align: center;
    color: #FA842E;
}

.bannez-profile-menu a:hover {
    background: rgba(250, 132, 46, 0.10);
    color: #FA842E !important;
    padding-left: 15px;
}

.bannez-profile-menu .bannez-profile-menu-divider {
    height: 1px;
    margin: 5px 4px;
    background: rgba(31, 41, 55, 0.09);
}

.bannez-profile-menu .bannez-profile-menu-danger:hover {
    background: rgba(220, 38, 38, 0.07);
    color: #b91c1c !important;
}

/* =========================================================
   3) PER-SERVICE PRICE VISIBILITY
   ========================================================= */

/* Scope hidden-price cleanup to the current service sidebar only so
   related/recommended service cards can still use their own setting. */
body.bannez-price-hidden .bannez-service-sidebar .ppt-price,
body.bannez-price-hidden .bannez-service-sidebar .ppt-price-set,
body.bannez-price-hidden .bannez-service-sidebar .prictag,
body.bannez-price-hidden .bannez-service-sidebar [data-price-amount] {
    display: none !important;
}

/* =========================================================
   4) SINGLE SERVICE SIDEBAR - AGENCY FLOW
   ========================================================= */

.bannez-service-action-stack {
    margin-top: 8px;
    margin-bottom: 24px;
}

.bannez-price-panel {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid rgba(31, 41, 55, 0.10);
    border-radius: 10px;
}

.bannez-price-label {
    color: rgba(31, 41, 55, 0.62);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.bannez-service-price {
    color: #1F2937;
    font-size: 24px;
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
}

.bannez-buy-now,
.bannez-chat-with-us {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 48px;
    padding: 12px 18px;
    margin-bottom: 11px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}

.bannez-buy-now {
    border: 1px solid #FA842E;
    background: #FA842E;
    color: #fff !important;
    box-shadow: 0 7px 18px rgba(250, 132, 46, 0.22);
}

.bannez-buy-now:hover {
    transform: translateY(-1px);
    background: #e97320;
    border-color: #e97320;
    box-shadow: 0 10px 23px rgba(250, 132, 46, 0.28);
}

.bannez-chat-with-us {
    border: 1px solid #FA842E;
    background: #fff;
    color: #1F2937 !important;
    box-shadow: 0 5px 14px rgba(250, 132, 46, 0.12);
}

.bannez-chat-with-us:hover {
    transform: translateY(-1px);
    border-color: #1F2937;
    background: #1F2937;
    color: #fff !important;
    box-shadow: 0 9px 22px rgba(31, 41, 55, 0.15);
}

.bannez-chat-icon {
    font-size: 17px;
    line-height: 1;
}

.bannez-secure-box {
    position: relative;
    overflow: hidden;
    margin-top: 16px;
    padding: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #fffaf6 100%);
    border: 1px solid rgba(250, 132, 46, 0.22);
    border-left: 4px solid #FA842E;
    border-radius: 11px;
    box-shadow: 0 8px 24px rgba(31, 41, 55, 0.08);
    animation: bannezTrustSlideIn .65s ease-out both, bannezTrustGlow 3.8s ease-in-out .8s infinite;
}

.bannez-secure-box::after {
    content: "";
    position: absolute;
    width: 95px;
    height: 95px;
    right: -42px;
    top: -46px;
    border-radius: 50%;
    background: rgba(250, 132, 46, 0.08);
    pointer-events: none;
}

.bannez-secure-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 13px;
}

.bannez-secure-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    background: #FA842E;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    box-shadow: 0 0 0 6px rgba(250, 132, 46, 0.10);
}

.bannez-secure-heading strong {
    display: block;
    margin-bottom: 2px;
    color: #1F2937;
    font-size: 17px;
    line-height: 1.2;
}

.bannez-secure-heading span:not(.bannez-secure-icon) {
    display: block;
    color: rgba(31, 41, 55, 0.66);
    font-size: 12px;
    font-weight: 600;
}

.bannez-secure-box ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bannez-secure-box li {
    position: relative;
    margin: 0 0 8px;
    padding-left: 18px;
    color: #374151;
    font-size: 12px;
    line-height: 1.55;
}

.bannez-secure-box li:last-child {
    margin-bottom: 0;
}

.bannez-secure-box li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #FA842E;
    font-weight: 800;
}

@keyframes bannezTrustSlideIn {
    from {
        opacity: 0;
        transform: translateX(34px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bannezTrustGlow {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(31, 41, 55, 0.08), 0 0 0 rgba(250, 132, 46, 0);
    }
    50% {
        box-shadow: 0 10px 28px rgba(31, 41, 55, 0.10), 0 0 18px rgba(250, 132, 46, 0.17);
    }
}

.bannez-service-share {
    margin-top: 5px;
}

@media (prefers-reduced-motion: reduce) {
    .bannez-secure-box {
        animation: none;
    }
}

@media (max-width: 991.98px) {
    .bannez-service-sidebar {
        margin-top: 10px;
    }
}

/* =========================================================
   5) WP GUPPY FLOATING UNREAD BADGE
   ========================================================= */

/* WP Guppy originally rendered this badge only in its mobile state. After
   enabling unread counts on desktop, generic theme styles can leak into the
   <em> badge and create a horizontal white strip. Keep the override scoped to
   the main Guppy floating launcher only. */
.at-chatfloatholder .at-chatfloat > span {
    overflow: visible !important;
}

.at-chatfloatholder .at-chatfloat > span > .at-userchat_tab-noti {
    position: absolute !important;
    top: -3px !important;
    right: -3px !important;
    z-index: 10001 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
    max-height: 20px !important;
    margin: 0 !important;
    padding: 0 5px !important;
    border: 2px solid #fff !important;
    border-radius: 999px !important;
    background: #FA842E !important;
    color: #fff !important;
    box-shadow: 0 2px 7px rgba(31, 41, 55, 0.18) !important;
    font-family: Arial, sans-serif !important;
    font-size: 10px !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: 16px !important;
    letter-spacing: 0 !important;
    text-indent: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    transform: none !important;
}

.at-chatfloatholder .at-chatfloat > span > .at-userchat_tab-noti::before,
.at-chatfloatholder .at-chatfloat > span > .at-userchat_tab-noti::after {
    content: none !important;
    display: none !important;
}
