:root {
    --bnsw-blue: #0274be;
    --bnsw-blue-dark: #0064a8;
    --bnsw-orange: #ff9e01;
    --bnsw-orange-dark: #d96d13;
    --bnsw-text: #172033;
    --bnsw-muted: #667085;
    --bnsw-border: rgba(15, 23, 42, 0.12);
    --bnsw-soft: #f7f9fc;
    --bnsw-orange-soft: #fff3e8;
}

/* Elementor header compatibility */
.elementor-location-header,
.elementor-location-header .elementor-section,
.elementor-location-header .elementor-container,
.elementor-location-header .elementor-widget-wrap,
.elementor-location-header .elementor-widget,
.elementor-location-header .elementor-widget-container {
    overflow: visible !important;
}

.bnsw-header {
    position: relative;
    top: 0;
    z-index: 99999;
    background: #fff;
    border-bottom: 1px solid var(--bnsw-border);
}

.admin-bar .bnsw-header {
    top: 32px;
}

.bnsw-header__inner {
    max-width: 100%;
    min-height: 84px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    position: relative;
    z-index: 5;
    background: #fff;
}

/* Logo */
@media(min-width: 1100px){
.custom-logo{
	padding:1rem;
}
}
.bnsw-header__logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 auto;
    color: var(--bnsw-blue);
    font-weight: 600;
}

.bnsw-header__logo .custom-logo-link,
.bnsw-header__site-title,
.custom-logo-link {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none !important;
    color: var(--bnsw-blue);
    font-weight: 600;
}

.bnsw-header__logo img,
.bnsw-header__logo .custom-logo,
.bnsw-header__logo .custom-logo-link img,
.custom-logo-link img {
    max-width: 200px;
    max-height: 100px;
    width: auto;
    height: auto;
    display: block !important;
}

/* Desktop navigation */
.bnsw-header__nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: left;
}

.bnsw-menu,
.bnsw-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bnsw-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.bnsw-menu__item {
    position: static;
}

.bnsw-menu__link {
    color: var(--bnsw-text);
    font-size: 15px;
    font-weight: 600;
    padding: 15px 13px;
    border-radius: 999px;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: background 0.18s ease, color 0.18s ease;
}

.bnsw-menu__link:hover,
.bnsw-menu__link:focus-visible,
.bnsw-menu__item.is-open > .bnsw-menu__link,
.bnsw-menu__item.is-current > .bnsw-menu__link {
    background: var(--bnsw-orange-soft);
    color: var(--bnsw-orange-dark);
    outline: none;
}

.bnsw-menu__arrow,
.bnsw-account-menu__button span {
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease;
}

.bnsw-menu__item.is-open > .bnsw-menu__link .bnsw-menu__arrow,
.bnsw-account-menu:hover .bnsw-account-menu__button span,
.bnsw-account-menu.is-open .bnsw-account-menu__button span {
    transform: rotate(225deg) translateY(-1px);
}

/* Normal submenu fallback */
.bnsw-sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    min-width: 230px;
    background: #fff;
    border: 1px solid var(--bnsw-border);
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
    padding: 10px;
    z-index: 100000;
}

.bnsw-menu__item:hover > .bnsw-sub-menu,
.bnsw-menu__item:focus-within > .bnsw-sub-menu {
    display: block;
}

.bnsw-sub-menu__link {
    display: block;
    color: var(--bnsw-text);
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    padding: 11px 13px;
    border-radius: 12px;
}

.bnsw-sub-menu__link:hover,
.bnsw-sub-menu__link:focus-visible {
    background: var(--bnsw-orange-soft);
    color: var(--bnsw-orange-dark);
    outline: none;
}

/* Full-width Elementor mega menu */
.bnsw-mega {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    width: 100vw;
    max-width: 100vw;
    background: #fff;
    border-top: 1px solid var(--bnsw-border);
    border-bottom: 1px solid var(--bnsw-border);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.14);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
    z-index: 99999;
}

.bnsw-menu__item.is-open > .bnsw-mega,
.bnsw-menu__item:hover > .bnsw-mega,
.bnsw-menu__item:focus-within > .bnsw-mega {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.bnsw-mega__template {
    width: 100%;
}

/* Header actions */
.bnsw-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
}

.bnsw-language-switcher,
.bnsw-account-menu,
.bnsw-header__church-selector,
.bnsw-header__cart-shortcode {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.bnsw-language-switcher--mobile-top {
    display: none;
}

/* Shared action buttons except cart */
.bnsw-language-toggle,
.bnsw-header__account,
#cspOpenChurchModal {
    min-height: 46px;
    border: 1px solid rgba(2, 116, 190, 0.16) !important;
    background: #fff !important;
    color: var(--bnsw-blue) !important;
    border-radius: 999px !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    font-weight: 700;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.bnsw-language-toggle {
    width: 46px;
    height: 46px;
    min-width: 46px;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
}

.bnsw-language-toggle:hover,
.bnsw-language-toggle:focus-visible,
.bnsw-language-switcher.is-open .bnsw-language-toggle,
.bnsw-header__account:hover,
.bnsw-header__account:focus-visible,
.bnsw-account-menu:hover .bnsw-header__account,
.bnsw-account-menu.is-open .bnsw-header__account,
#cspOpenChurchModal:hover,
#cspOpenChurchModal:focus-visible {
    background: var(--bnsw-blue) !important;
    color: #fff !important;
    border-color: var(--bnsw-blue) !important;
    box-shadow: 0 10px 26px rgba(2, 116, 190, 0.22);
    transform: translateY(-1px);
    outline: none;
}

.bnsw-language-toggle i,
.bnsw-language-toggle svg,
.bnsw-language-icon {
    display: block !important;
    color: currentColor !important;
    fill: currentColor !important;
    line-height: 1;
}

.bnsw-language-toggle i {
    font-size: 20px !important;
}

/* Desktop language dropdown */
.bnsw-language-switcher {
    position: relative;
}

.bnsw-language-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 260px;
    background: #fff;
    border: 1px solid var(--bnsw-border);
    border-radius: 18px;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.16);
    padding: 14px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
    z-index: 100001;
}

.bnsw-language-switcher.is-open .bnsw-language-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.bnsw-language-panel::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
}

/* Google Translate cleanup */
.goog-te-gadget {
    font-family: inherit !important;
}

.bnsw-google-translate-slot .goog-te-gadget {
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
}

.bnsw-google-translate-slot .goog-te-gadget > span,
.bnsw-google-translate-slot .goog-logo-link {
    display: none !important;
}

.bnsw-google-translate-slot .goog-te-gadget select {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    border: 1px solid var(--bnsw-border) !important;
    border-radius: 12px !important;
    padding: 9px 10px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    color: var(--bnsw-text) !important;
    background: #fff !important;
}

/* Account */
.bnsw-header__account {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px !important;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none !important;
    cursor: pointer;
}

.bnsw-header__actions a.bnsw-header__account:visited {
    color: var(--bnsw-blue) !important;
}

.bnsw-header__actions a.bnsw-header__account:hover,
.bnsw-header__actions a.bnsw-header__account:focus-visible {
    color: #fff !important;
}

.bnsw-account-menu {
    position: relative;
}

.bnsw-account-menu__button {
    border: 0;
}

.bnsw-account-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 220px;
    background: #fff;
    border: 1px solid var(--bnsw-border);
    border-radius: 18px;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.16);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
    z-index: 100000;
}

.bnsw-account-menu:hover .bnsw-account-dropdown,
.bnsw-account-menu:focus-within .bnsw-account-dropdown,
.bnsw-account-menu.is-open .bnsw-account-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.bnsw-account-dropdown::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
}

.bnsw-account-dropdown a {
    display: block;
    color: var(--bnsw-text);
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 13px;
    border-radius: 12px;
    transition: background 0.18s ease, color 0.18s ease;
}

.bnsw-account-dropdown a:hover,
.bnsw-account-dropdown a:focus-visible {
    background: var(--bnsw-orange-soft);
    color: var(--bnsw-orange-dark);
    outline: none;
}

/* Church selector button */
#cspOpenChurchModal.bnsw-church-icon-ready {
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 !important;
    overflow: hidden !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    white-space: nowrap !important;
    cursor: pointer;
    line-height: 1 !important;
    font-size: 0 !important;
    transition: width 0.24s ease, max-width 0.24s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

#cspOpenChurchModal.bnsw-church-icon-ready .bnsw-church-icon {
    width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
    flex: 0 0 46px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: currentColor !important;
    line-height: 1 !important;
}

#cspOpenChurchModal.bnsw-church-icon-ready .bnsw-church-svg {
    display: block !important;
    width: 19px !important;
    height: 19px !important;
    fill: currentColor !important;
    color: currentColor !important;
}

#cspOpenChurchModal.bnsw-church-icon-ready .bnsw-church-svg path {
    fill: currentColor !important;
}

#cspOpenChurchModal.bnsw-church-icon-ready .bnsw-church-text {
    display: inline-block !important;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    color: currentColor !important;
    font-size: 14px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    transition: opacity 0.18s ease, max-width 0.24s ease;
}

#cspOpenChurchModal.bnsw-church-icon-ready:hover,
#cspOpenChurchModal.bnsw-church-icon-ready:focus-visible {
    width: 260px !important;
    max-width: 260px !important;
    padding-right: 18px !important;
}

#cspOpenChurchModal.bnsw-church-icon-ready:hover .bnsw-church-text,
#cspOpenChurchModal.bnsw-church-icon-ready:focus-visible .bnsw-church-text {
    opacity: 1;
    max-width: 210px;
}

/* Mobile toggle */
.bnsw-mobile-toggle {
    display: none;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border: 1px solid var(--bnsw-blue);
    background: var(--bnsw-blue);
    border-radius: 999px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
}

.bnsw-mobile-toggle span {
    width: 20px;
    height: 2px;
    background: #fff !important;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

body.bnsw-menu-open .bnsw-mobile-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

body.bnsw-menu-open .bnsw-mobile-toggle span:nth-child(2) {
    opacity: 0;
}

body.bnsw-menu-open .bnsw-mobile-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.bnsw-mobile-menu {
    display: none;
}

.bnsw-mobile-nav,
.bnsw-mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bnsw-mobile-nav__item {
    border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

.bnsw-mobile-nav__toggle,
.bnsw-mobile-nav__link,
.bnsw-mobile-nav a {
    width: 100%;
    min-height: 30px;
    border: 0;
    background: transparent !important;
    color: var(--bnsw-blue) !important;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    padding: 16px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    cursor: pointer;
}


.bnsw-mobile-nav__item.is-open {
    border-bottom: 0;
    margin-bottom: 12px;
}

.bnsw-mobile-nav__item.is-open > .bnsw-mobile-nav__toggle {
    background: var(--bnsw-blue);
    color: #fff;
    padding: 16px 14px;
}


.bnsw-mobile-nav a:hover,
.bnsw-mobile-nav a:focus-visible,
.bnsw-mobile-nav__toggle:hover,
.bnsw-mobile-nav__toggle:focus-visible {
    color: var(--bnsw-orange-dark);
    outline: none;
}

.bnsw-mobile-nav__item.is-open > .bnsw-mobile-nav__toggle:hover,
.bnsw-mobile-nav__item.is-open > .bnsw-mobile-nav__toggle:focus-visible {
    color: #fff;
}

.bnsw-mobile-sub-menu {
    padding: 0 0 14px 14px;
}

.bnsw-mobile-sub-menu__link,
.bnsw-mobile-nav .sub-menu a {
    display: block;
    color: var(--bnsw-text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    padding: 9px 4px;
}

/* Mobile language accordion */
.bnsw-mobile-language-accordion {
    display: block;
    border: 1px solid var(--bnsw-border);
    border-radius: 16px;
    margin-bottom: 14px;
    overflow: hidden;
}

.bnsw-mobile-language-accordion__button {
    width: 100%;
    min-height: 52px;
    border: 0;
    background: var(--bnsw-soft);
    color: var(--bnsw-blue);
    font-size: 15px;
    font-weight: 800;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-align: left;
}

.bnsw-mobile-language-accordion__button span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.bnsw-mobile-language-accordion.is-open .bnsw-mobile-language-accordion__button {
    background: var(--bnsw-blue);
    color: #fff;
}

.bnsw-mobile-language-accordion__panel {
    display: none;
    padding: 14px;
    background: #fff;
}

.bnsw-mobile-language-accordion.is-open .bnsw-mobile-language-accordion__panel {
    display: block;
}

body.bnsw-language-only .bnsw-mobile-nav,
body.bnsw-language-only .bnsw-mobile-account,
body.bnsw-language-only .bnsw-mobile-account-links,
body.bnsw-language-only .bnsw-mobile-cart {
    display: none !important;
}

/* Mobile mega panel */
.bnsw-mobile-mega-panel {
    display: none;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-top: 0;
    padding: 0;
    margin: 0;
}

.bnsw-mobile-nav__item.is-open > .bnsw-mobile-mega-panel {
    display: block;
}

.bnsw-mobile-mega-panel__inner {
    padding: 18px 18px 20px;
    margin: 0;
    background: #fff;
}

.bnsw-mobile-mega-panel .bnsw-mobile-hide {
    display: none !important;
}

.bnsw-mobile-mega-panel .elementor,
.bnsw-mobile-mega-panel .elementor-section,
.bnsw-mobile-mega-panel .elementor-container,
.bnsw-mobile-mega-panel .elementor-column,
.bnsw-mobile-mega-panel .elementor-widget-wrap,
.bnsw-mobile-mega-panel .e-con,
.bnsw-mobile-mega-panel .e-con-inner {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    gap: 0 !important;
}

.bnsw-mobile-mega-panel .elementor-widget {
    margin-bottom: 0 !important;
}

.bnsw-mobile-mega-panel .elementor-widget-bnsw_mega_links_column {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
}

.bnsw-mobile-mega-panel .bnsw-mega-links-column {
    padding: 0 !important;
    margin: 0 !important;
}

.bnsw-mobile-mega-panel .bnsw-mega-links-column__heading {
    color: var(--bnsw-blue);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 8px 0 8px !important;
    padding: 0 2px;
}

.bnsw-mobile-mega-panel .bnsw-mega-links-column__list {
    display: flex;
    flex-direction: column;
    gap: 2px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.bnsw-mobile-mega-panel .bnsw-mega-links-column__link {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--bnsw-text) !important;
    background: transparent;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
    text-decoration: none !important;
    padding: 11px 12px;
    margin: 0 !important;
    border-radius: 10px;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.bnsw-mobile-mega-panel .bnsw-mega-links-column__link::after {
    content: "›";
    color: rgba(23, 32, 51, 0.35);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    transition: color 0.18s ease, transform 0.18s ease;
}

.bnsw-mobile-mega-panel .bnsw-mega-links-column__link:hover,
.bnsw-mobile-mega-panel .bnsw-mega-links-column__link:focus-visible {
    background: var(--bnsw-orange-soft);
    color: var(--bnsw-orange-dark) !important;
    transform: translateX(2px);
    outline: none;
}

.bnsw-mobile-mega-panel .bnsw-mega-links-column__link:hover::after,
.bnsw-mobile-mega-panel .bnsw-mega-links-column__link:focus-visible::after {
    color: var(--bnsw-orange-dark);
    transform: translateX(2px);
}

/* Desktop Elementor links widget hover */
.elementor-widget-bnsw_mega_links_column .bnsw-mega-links-column__link,
.bnsw-mega-links-column__link {
    display: block;
    width: 100%;
    color: #111827 !important;
    font-size: 15px;
    line-height: 1.15;
    font-weight: 600;
    text-decoration: none !important;
    padding: 12px 14px;
    margin-left: -14px;
    border-radius: 14px;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.elementor-widget-bnsw_mega_links_column .bnsw-mega-links-column__link:hover,
.elementor-widget-bnsw_mega_links_column .bnsw-mega-links-column__link:focus-visible,
.bnsw-mega-links-column__link:hover,
.bnsw-mega-links-column__link:focus-visible {
    background: var(--bnsw-soft);
    color: var(--bnsw-orange-dark) !important;
    transform: translateX(4px);
    outline: none;
}

.bnsw-mega-links-column__list {
    gap: 0 !important;
}

/* Mobile account */
.bnsw-mobile-account,
.bnsw-mobile-account-links {
    margin-top: 18px;
}

.bnsw-mobile-account {
    display: block;
    text-align: center;
    background: var(--bnsw-blue);
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 600;
    border-radius: 999px;
    padding: 15px 18px;
}

.bnsw-mobile-account:hover,
.bnsw-mobile-account:focus-visible {
    background: var(--bnsw-blue-dark);
    color: #fff;
    outline: none;
}

.bnsw-mobile-account-links {
    background: var(--bnsw-soft);
    border-radius: 18px;
    padding: 16px;
}

.bnsw-mobile-account-links h3 {
    margin: 0 0 10px;
    color: var(--bnsw-blue);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.bnsw-mobile-account-links a {
    display: block;
    color: var(--bnsw-text);
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 0;
}

.bnsw-mobile-account-links a:hover,
.bnsw-mobile-account-links a:focus-visible {
    color: var(--bnsw-orange-dark);
    outline: none;
}

/* Cart drawer button */
.bnsw-cart-drawer-button {
    position: relative;
    width: 46px;
    height: 46px;
    min-width: 46px;
    border: 0;
    border-radius: 999px;
    background: var(--bnsw-blue) !important;
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(2, 116, 190, 0.24);
    transition: transform 0.18s ease, background 0.18s ease;
}

.bnsw-cart-drawer-button:hover,
.bnsw-cart-drawer-button:focus-visible {
    background: var(--bnsw-blue-dark) !important;
    color: #fff !important;
    transform: translateY(-1px);
    outline: none;
}

.bnsw-cart-drawer-button__icon {
    font-size: 16px;
    line-height: 1;
}

.bnsw-cart-drawer-button__count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--bnsw-orange) !important;
    color: #fff !important;
    font-size: 11px;
    font-weight: 800;
    line-height: 19px;
    text-align: center;
    box-shadow: 0 0 0 2px #fff;
}

.bnsw-cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.46);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 100002;
}

.bnsw-cart-drawer-wrap.is-open .bnsw-cart-drawer-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.bnsw-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px, 100vw);
    height: 100vh;
    background: #fff;
    box-shadow: -24px 0 60px rgba(15, 23, 42, 0.2);
    transform: translateX(105%);
    transition: transform 0.25s ease;
    z-index: 100003;
    display: flex;
    flex-direction: column;
}

.admin-bar .bnsw-cart-drawer {
    top: 32px;
    height: calc(100vh - 32px);
}

.bnsw-cart-drawer-wrap.is-open .bnsw-cart-drawer {
    transform: translateX(0);
}

body.bnsw-cart-drawer-open {
    overflow: hidden;
}

.bnsw-cart-drawer__header {
    padding: 22px 22px 18px;
    border-bottom: 1px solid var(--bnsw-border);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.bnsw-cart-drawer__header h3 {
    margin: 0;
    color: var(--bnsw-text);
    font-size: 22px;
    font-weight: 800;
}

.bnsw-cart-drawer__header p {
    margin: 4px 0 0;
    color: var(--bnsw-muted);
    font-size: 13px;
    font-weight: 600;
}

.bnsw-cart-drawer__close {
   
    border: 0;
    border-radius: 999px;
    background: var(--bnsw-soft);
    color: var(--bnsw-text);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.bnsw-cart-drawer__close:hover,
.bnsw-cart-drawer__close:focus-visible {
    background: var(--bnsw-orange-soft);
    color: var(--bnsw-orange-dark);
    outline: none;
}

.bnsw-cart-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    position: relative;
}

.bnsw-cart-drawer-wrap.is-loading .bnsw-cart-drawer__body::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.65);
    z-index: 2;
}

.bnsw-cart-drawer__empty {
    padding: 60px 28px;
    text-align: center;
}

.bnsw-cart-drawer__empty-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 18px;
    border-radius: 999px;
    background: var(--bnsw-orange-soft);
    color: var(--bnsw-orange-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.bnsw-cart-drawer__empty h4 {
    margin: 0 0 8px;
    color: var(--bnsw-text);
    font-size: 20px;
    font-weight: 800;
}

.bnsw-cart-drawer__empty p {
    margin: 0;
    color: var(--bnsw-muted);
    font-size: 14px;
}

.bnsw-cart-drawer__items {
    padding: 18px;
}

.bnsw-cart-drawer__item {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 14px;
    padding: 0 0 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--bnsw-border);
}

.bnsw-cart-drawer__item:last-child {
    margin-bottom: 0;
}

.bnsw-cart-drawer__thumb img {
    width: 76px;
    height: 76px;
    object-fit: cover;
    border-radius: 14px;
    background: var(--bnsw-soft);
}

.bnsw-cart-drawer__item-main {
    min-width: 0;
}

.bnsw-cart-drawer__title {
    display: block;
    color: var(--bnsw-text);
    text-decoration: none !important;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 800;
    margin-bottom: 6px;
}

.bnsw-cart-drawer__title:hover {
    color: var(--bnsw-orange-dark);
}

.bnsw-cart-drawer__price {
    color: var(--bnsw-muted);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
}

.bnsw-cart-drawer__qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.bnsw-cart-drawer__qty {
    height: 34px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--bnsw-border);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.bnsw-cart-drawer__qty-btn {
    border: 0;
    background: #fff;
    color: var(--bnsw-blue);
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
}

.bnsw-cart-drawer__qty-btn:hover {
    background: var(--bnsw-soft);
}

.bnsw-cart-drawer__qty-input {
    width: 38px;
    height: 32px;
    border: 0;
    border-left: 1px solid var(--bnsw-border);
    border-right: 1px solid var(--bnsw-border);
    text-align: center;
    color: var(--bnsw-text);
    font-size: 13px;
    font-weight: 800;
    appearance: textfield;
    -moz-appearance: textfield;
}

.bnsw-cart-drawer__qty-input::-webkit-outer-spin-button,
.bnsw-cart-drawer__qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.bnsw-cart-drawer__remove {
    border: 0;
    background: transparent;
    color: var(--bnsw-orange-dark);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    padding: 0;
}

.bnsw-cart-drawer__remove:hover {
    text-decoration: underline;
}

.bnsw-cart-drawer__footer {
    position: sticky;
    bottom: 0;
    background: #fff;
    border-top: 1px solid var(--bnsw-border);
    padding: 18px;
}

.bnsw-cart-drawer__subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--bnsw-text);
    font-size: 15px;
    margin-bottom: 14px;
}

.bnsw-cart-drawer__subtotal span {
    font-weight: 700;
}

.bnsw-cart-drawer__subtotal strong {
    font-weight: 900;
}

.bnsw-cart-drawer__checkout,
.bnsw-cart-drawer__view-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    padding: 14px 18px;
}

.bnsw-cart-drawer__checkout {
    background: var(--bnsw-blue);
    color: #fff !important;
    margin-bottom: 10px;
}

.bnsw-cart-drawer__checkout:hover {
    background: var(--bnsw-blue-dark);
    color: #fff !important;
}

.bnsw-cart-drawer__view-cart {
    background: var(--bnsw-orange-soft);
    color: var(--bnsw-orange-dark) !important;
}

.bnsw-cart-drawer__view-cart:hover {
    background: var(--bnsw-orange);
    color: #fff !important;
}




/* Tablet and mobile */
@media (max-width: 1120px) {
    .bnsw-header__inner {
        min-height: 74px;
        padding: 0 18px;
        gap: 12px;
        width: 100%;
    }

    .bnsw-header__logo {
        display: flex !important;
        align-items: center;
        justify-content: flex-start;
        flex: 0 0 auto;
        margin-right: auto;
        order: 1;
    }

    .bnsw-header__logo img,
    .bnsw-header__logo .custom-logo,
    .bnsw-header__logo .custom-logo-link img,
    .custom-logo-link img {
        max-width: 170px;
        max-height: 75px;
        width: auto;
        height: auto;
        display: block !important;
    }

    .bnsw-header__nav,
    .bnsw-language-switcher--desktop,
    .bnsw-account-menu,
    .bnsw-header__account,
    .bnsw-header__church-selector {
        display: none !important;
    }

    .bnsw-header__actions {
        order: 2;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex: 0 0 auto;
        margin-left: auto;
        gap: 8px;
    }

    .bnsw-language-switcher--mobile-top {
        display: flex !important;
        order: 1;
    }

    .bnsw-mobile-toggle {
        display: flex !important;
        order: 2;
        margin-left: 0 !important;
    }

    .bnsw-header__cart-shortcode {
        display: flex !important;
        order: 3;
    }

    .bnsw-mobile-menu {
        display: block;
        position: fixed;
        inset: 74px 0 auto 0;
        height: calc(100vh - 74px);
        background: rgba(15, 23, 42, 0.42);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.2s ease, visibility 0.2s ease;
        z-index: 99998;
    }

    body.bnsw-menu-open .bnsw-mobile-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .bnsw-mobile-menu__inner {
        background: #fff;
        height: 100%;
        overflow-y: auto;
        padding: 16px;
    }

    
}

@media (max-width: 782px) {
    .admin-bar .bnsw-header {
        top: 46px;
    }

    .admin-bar .bnsw-cart-drawer {
        top: 46px;
        height: calc(100vh - 46px);
    }
}

@media (max-width: 600px) {
    .admin-bar .bnsw-header {
        top: 0;
    }

    .admin-bar .bnsw-cart-drawer {
        top: 0;
        height: 100vh;
    }

    .bnsw-header__inner {
        min-height: 70px;
    }

    .bnsw-header__logo img,
    .bnsw-header__logo .custom-logo,
    .bnsw-header__logo .custom-logo-link img,
    .custom-logo-link img {
        max-width: 170px;
        max-height: 48px;
    }

    .bnsw-mobile-menu {
        inset: 70px 0 auto 0;
        height: calc(100vh - 70px);
    }

    .bnsw-cart-drawer {
        width: 100vw;
    }

    .bnsw-cart-drawer__item {
        grid-template-columns: 66px 1fr;
    }

    .bnsw-cart-drawer__thumb img {
        width: 66px;
        height: 66px;
    }

    .bnsw-cart-drawer__qty-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Hide only right-side header actions until page fully loads */
.bnsw-header.bnsw-actions-loading .bnsw-header__actions {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.bnsw-header.bnsw-actions-ready .bnsw-header__actions {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.2s ease;
}

/* Mobile menu positioning fix without blocking menu open */
@media (max-width: 1120px) {
    body.bnsw-menu-open {
        overflow: hidden;
    }

    .bnsw-header {
        position: relative;
        z-index: 99999;
    }

    .bnsw-header__inner {
        position: relative;
        z-index: 100000;
        background: #ffffff;
    }

    .bnsw-mobile-menu {
        display: block;
        position: fixed !important;
        left: 0;
        right: 0;
        top: 74px !important;
        height: calc(100vh - 74px) !important;
        background: rgba(15, 23, 42, 0.42);
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.2s ease, visibility 0.2s ease;
        z-index: 99998;
    }

    body.bnsw-menu-open .bnsw-mobile-menu {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .bnsw-mobile-menu__inner {
        width: min(460px, 100%);
        height: 100%;
        max-height: calc(100vh - 74px);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        background: #ffffff;
        padding: 16px;
    }
}

@media (max-width: 600px) {
    .bnsw-mobile-menu {
        top: 70px !important;
        height: calc(100vh - 70px) !important;
    }

    .bnsw-mobile-menu__inner {
        max-height: calc(100vh - 70px);
    }
}

@media (min-width: 1120px) and (max-width: 1130px) {
    .bnsw-header__logo img,
    .bnsw-header__logo .custom-logo,
    .bnsw-header__logo .custom-logo-link img {
        max-width: 150px;
    }
}

.bnsw-mobile-account a:visited{
	color:white !important;
}

/* Mobile menu active item + arrow fix */
@media (max-width: 1120px) {

    /* Make parent item look active when opened */
    .bnsw-mobile-nav__item.is-open > .bnsw-mobile-nav__toggle {
        background: var(--bnsw-blue) !important;
        color: #ffffff !important;
        border-radius: 12px 12px 0 0;
        padding: 16px 14px !important;
    }

    /* Make the right arrow visible */
    .bnsw-mobile-nav__toggle span {
        display: inline-block !important;
        width: 9px !important;
        height: 9px !important;
        min-width: 9px !important;
        border-right: 2px solid currentColor !important;
        border-bottom: 2px solid currentColor !important;
        transform: rotate(45deg) !important;
        margin-left: 12px !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: transparent !important;
    }

    /* Rotate arrow when open */
    .bnsw-mobile-nav__item.is-open > .bnsw-mobile-nav__toggle span {
        transform: rotate(225deg) !important;
        color: #ffffff !important;
    }

    /* Closed parent styling */
    .bnsw-mobile-nav__toggle {
        background: transparent !important;
        color: var(--bnsw-blue) !important;
        border-radius: 12px;
    }

    /* Submenu panel attached to active item */
    .bnsw-mobile-nav__item.is-open > .bnsw-mobile-mega-panel {
        background: #ffffff !important;
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-top: 0;
        border-radius: 0 0 12px 12px;
        overflow: hidden;
    }
}

@media (min-width: 1121px) {
    .bnsw-menu__item:hover > .bnsw-mega,
    .bnsw-menu__item:focus-within > .bnsw-mega {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .bnsw-menu__item.is-open > .bnsw-mega {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
}

@media (min-width: 1121px) {
    .bnsw-mega::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: -28px;
        height: 28px;
        background: transparent;
        pointer-events: auto;
    }

    .bnsw-menu__item.is-open > .bnsw-mega {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
}
/* Force full header to stay visible while scrolling */
.bnsw-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 999999 !important;
    background: #ffffff !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

/* Keep header content solid */
.bnsw-header__inner {
    background: #ffffff !important;
}

/* Stop page content from hiding behind fixed header */
body {
    padding-top: var(--bnsw-fixed-header-height, 84px);
}

/* WordPress admin bar offset */
.admin-bar .bnsw-header {
    top: 32px !important;
}

.admin-bar body {
    padding-top: calc(var(--bnsw-fixed-header-height, 84px) + 32px);
}

@media (max-width: 782px) {
    .admin-bar .bnsw-header {
        top: 46px !important;
    }

    .admin-bar body {
        padding-top: calc(var(--bnsw-fixed-header-height, 74px) + 46px);
    }
}

@media (max-width: 600px) {
    body {
        padding-top: var(--bnsw-fixed-header-height, 70px);
    }

    .admin-bar .bnsw-header {
        top: 0 !important;
    }

    .admin-bar body {
        padding-top: var(--bnsw-fixed-header-height, 70px);
    }
}

/* Make sure Elementor wrappers do not clip the fixed header / mega menu */
.elementor-location-header,
.elementor-location-header .elementor-section,
.elementor-location-header .elementor-container,
.elementor-location-header .elementor-widget-wrap,
.elementor-location-header .elementor-widget,
.elementor-location-header .elementor-widget-container {
    overflow: visible !important;
}

.ast-header-breadcrumb{
	padding-top:0.5rem;
}


/* =========================================================
   Header Search Button + Full Screen Search Overlay
   ========================================================= */

.bnsw-header__search-shortcode {
    display: flex;
    align-items: center;
}

.bnsw-header-search {
    display: flex;
    align-items: center;
}

.bnsw-header-search__button {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border: 1px solid rgba(2, 116, 190, 0.14);
    border-radius: 999px;
    background: #ffffff;
    color: var(--bnsw-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    transition:
        background 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.bnsw-header-search__button:hover,
.bnsw-header-search__button:focus-visible,
.bnsw-header-search.is-open .bnsw-header-search__button {
    background: var(--bnsw-blue);
    color: #ffffff;
    border-color: var(--bnsw-blue);
    box-shadow: 0 10px 26px rgba(2, 116, 190, 0.22);
    transform: translateY(-1px);
    outline: none;
}

.bnsw-header-search__button i {
    font-size: 18px;
    line-height: 1;
}

/* Overlay */
.bnsw-search-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient( 45deg, rgba(0, 0, 0, 0.79), rgba(0, 0, 0, 0.5) );
    z-index: 1000000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.22s ease,
        visibility 0.22s ease;
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(16px);
}

.bnsw-header-search.is-open .bnsw-search-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.bnsw-search-overlay__inner {
    width: min(860px, calc(100vw - 36px));
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bnsw-search-overlay__close {
    position: fixed;
    top: 24px;
    right: 28px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}

.bnsw-search-overlay__close:hover,
.bnsw-search-overlay__close:focus-visible {
    background: #ffffff;
    color: var(--bnsw-blue);
    outline: none;
}

.bnsw-search-overlay__form {
    width: 100%;
    text-align: center;
}

.bnsw-search-overlay__label {
    display: block;
    color: #ffffff;
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 28px;
}

.bnsw-search-overlay__field {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border-radius: 999px;
    padding: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
}

@media(max-width:768px){
	.bnsw-search-overlay__field input {
	padding: 20px 22px !important;
	}
}
.bnsw-search-overlay__field input {
    flex: 1;
    min-width: 0;
    height: 58px;
    border: 0;
    background: transparent;
    color: var(--bnsw-text);
    font-size: 20px;
    font-weight: 600;
    padding: 0 22px;
    outline: none;
}



.bnsw-search-overlay__field button {
    height: 58px;
    border: 0;
    border-radius: 999px;
    background: var(--bnsw-orange);
    color: #ffffff;
    padding: 0 28px;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
}

.bnsw-search-overlay__field button:hover,
.bnsw-search-overlay__field button:focus-visible {
    background: var(--bnsw-orange-dark);
    outline: none;
}

body.bnsw-search-open {
    overflow: hidden;
}

/* Mobile order: Logo -- Search -- Language -- Menu Toggle -- Cart */
@media (max-width: 1120px) {
    .bnsw-header__search-shortcode {
        display: flex !important;
        order: 1;
    }

    .bnsw-language-switcher--mobile-top {
        order: 2;
    }

    .bnsw-mobile-toggle {
        order: 3;
    }

    .bnsw-header__cart-shortcode {
        order: 4;
    }

    .bnsw-search-overlay__field {
        border-radius: 26px;
        flex-direction: column;
        padding: 14px;
    }

    .bnsw-search-overlay__field input,
    .bnsw-search-overlay__field button {
        width: 100%;
    }

    .bnsw-search-overlay__field button {
        height: 52px;
    }
}

/* =========================================================
   Search Results Page Cards
   ========================================================= */

.bnsw-search-results-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 48px 24px;
}

.bnsw-search-results-page__header {
    margin-bottom: 28px;
}

.bnsw-search-results-page__header h1 {
    margin: 0 0 18px;
    color: var(--bnsw-text);
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.bnsw-search-results-page__form {
    display: flex;
    gap: 10px;
    background: var(--bnsw-soft);
    padding: 8px;
    border-radius: 999px;
}

.bnsw-search-results-page__form input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 0 18px;
    font-size: 16px;
    font-weight: 600;
    outline: none;
}

.bnsw-search-results-page__form button {
    border: 0;
    border-radius: 999px;
    background: var(--bnsw-blue);
    color: #ffffff;
    padding: 14px 24px;
    font-weight: 900;
    cursor: pointer;
}

.bnsw-search-results-page__summary,
.bnsw-search-results-page__notice {
    margin: 0 0 24px;
    color: var(--bnsw-muted);
    font-size: 15px;
    font-weight: 600;
}

.bnsw-search-results-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.bnsw-search-card {
    background: #ffffff;
    border: 1px solid var(--bnsw-border);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.bnsw-search-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 46px rgba(15, 23, 42, 0.12);
}

.bnsw-search-card__image {
    height: 170px;
    background: var(--bnsw-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    overflow: hidden;
}

.bnsw-search-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bnsw-search-card__image span {
    color: #ffffff;
    font-size: 52px;
    font-weight: 900;
}

.bnsw-search-card__content {
    padding: 20px;
}

.bnsw-search-card__meta {
    display: inline-flex;
    color: var(--bnsw-orange-dark);
    background: var(--bnsw-orange-soft);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.bnsw-search-card h2 {
    margin: 0 0 10px;
    font-size: 19px !important;
    line-height: 1.25;
    font-weight: 900;
}

.bnsw-search-card h2 a {
    color: var(--bnsw-text);
    text-decoration: none !important;
}

.bnsw-search-card h2 a:hover {
    color: var(--bnsw-blue);
}

.bnsw-search-card p {
    margin: 0 0 16px;
    color: var(--bnsw-muted);
    font-size: 14px;
    line-height: 1.55;
}

.bnsw-search-card__link {
    color: var(--bnsw-blue);
    font-size: 14px;
    font-weight: 900;
    text-decoration: none !important;
}

.bnsw-search-card__link:hover {
    color: var(--bnsw-orange-dark);
}

@media (max-width: 900px) {
    .bnsw-search-results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .bnsw-search-results-grid {
        grid-template-columns: 1fr;
    }

    .bnsw-search-results-page__form {
        border-radius: 22px;
        flex-direction: column;
    }

    .bnsw-search-results-page__form input,
    .bnsw-search-results-page__form button {
        width: 100%;
        min-height: 48px;
    }
}

/* Search pagination */
.bnsw-search-pagination {
    margin-top: 42px;
    display: flex;
    justify-content: center;
}

.bnsw-search-pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.bnsw-search-pagination li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.bnsw-search-pagination a,
.bnsw-search-pagination span {
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--bnsw-border);
    background: #ffffff;
    color: var(--bnsw-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
}

.bnsw-search-pagination a:hover,
.bnsw-search-pagination a:focus-visible,
.bnsw-search-pagination .current {
    background: var(--bnsw-blue);
    border-color: var(--bnsw-blue);
    color: #ffffff;
}

.bnsw-search-pagination .dots {
    border-color: transparent;
    background: transparent;
}

#bnsw-search-input{
	border-radius:50px;
}


/* Remove Astra/preview/banner header only on custom search results page */
body.page-search-results .ast-single-entry-banner,
body.page-search-results .entry-header,
body.page-search-results .page-header,
body.page-search-results .ast-archive-description,
body.page-search-results .main-header-bar.ast-header-breadcrumb {
    display: none !important;
}

.bnsw-search-results-page__form select {
    min-width: 150px;
	width:30%;
    border: 0;
    border-left: 1px solid var(--bnsw-border);
    background: #ffffff;
    color: var(--bnsw-text);
    padding: 0 16px;
    font-size: 15px;
    font-weight: 800;
    outline: none;
    border-radius: 999px;
    cursor: pointer;
}

.bnsw-search-results-page__form select:focus-visible {
    box-shadow: 0 0 0 3px rgba(2, 116, 190, 0.16);
}

@media (max-width: 600px) {
    .bnsw-search-results-page__form select {
        width: 100%;
        min-height: 48px;
        border-left: 0;
        border-top: 1px solid var(--bnsw-border);
        border-radius: 16px;
    }
}

.cdm-email-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cdm-email-input-wrap {
  position: relative;
  flex: 1;
}

.cdm-email-input-wrap input {
  width: 100%;
  padding-right: 42px !important;
}

.cdm-email-check-icon {
  display: none;
  position: absolute;
  right: 13px;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  border-radius: 50%;
  font-size: 14px;
  line-height: 22px;
  text-align: center;
  font-weight: 700;
}

.cdm-email-status {
  display: none;
  min-width: 145px;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 600;
  white-space: nowrap;
}

#cdm_header_register_email.is-available {
  border-color: #16a34a !important;
  box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.18) !important;
}

#cdm_header_register_email.is-unavailable,
#cdm_header_register_email.is-error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.18) !important;
}

#cdm_header_register_email.is-checking {
  border-color: #64748b !important;
}

.cdm-email-check-icon.is-available {
  display: block;
  background: #16a34a;
  color: #ffffff;
}

.cdm-email-check-icon.is-available::before {
  content: "✓";
}

.cdm-email-check-icon.is-unavailable,
.cdm-email-check-icon.is-error {
  display: block;
  background: #dc2626;
  color: #ffffff;
}

.cdm-email-check-icon.is-unavailable::before,
.cdm-email-check-icon.is-error::before {
  content: "×";
}

.cdm-email-check-icon.is-checking {
  display: block;
  background: #64748b;
  color: #ffffff;
}

.cdm-email-check-icon.is-checking::before {
  content: "…";
}

.cdm-email-status.is-available,
.cdm-email-status.is-unavailable,
.cdm-email-status.is-error,
.cdm-email-status.is-checking {
  display: inline-block;
}

.cdm-email-status.is-available {
  color: #15803d;
}

.cdm-email-status.is-unavailable,
.cdm-email-status.is-error {
  color: #b91c1c;
}

.cdm-email-status.is-checking {
  color: #475569;
}

.cdm-email-login-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #1e69dd;
  text-decoration: underline;
}

.cdm-email-login-link[hidden] {
  display: none !important;
}

@media (max-width: 600px) {
  .cdm-email-row {
    display: block;
  }

  .cdm-email-status {
    margin-top: 6px;
    min-width: 0;
    white-space: normal;
  }
}


.bnsw-search-card__file {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

.bnsw-search-card__file i {
  font-size: 18px;
  color: #045cb4;
}

.bnsw-search-card__file .fa-file-pdf {
  color: #dc2626;
}

.bnsw-search-card__file .fa-file-word {
  color: #2563eb;
}

.bnsw-search-results-grid {
  align-items: stretch;
}

.bnsw-search-card {
  height: 100%;
  display: flex;
}

.bnsw-search-card__content {
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.bnsw-search-card__link {
  margin-top: auto;
  align-self: flex-start;
}

.bnsw-search-card {
  height: 100%;
  display: flex;
}

.bnsw-search-card__content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.bnsw-search-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.bnsw-search-card__type {
  display: inline-flex;
  align-items: center;
  width: auto;
  max-width: max-content;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff4ea;
  color: #d35400;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.bnsw-search-card__parent {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  max-width: 58%;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-align: right;
  color: #045cb4;
}

.bnsw-search-card__parent a {
  color: #045cb4;
  text-decoration: none;
}

.bnsw-search-card__parent a:hover {
  text-decoration: underline;
}

.bnsw-search-card h2 {
  margin-top: 0;
  margin-bottom: 14px;
}

.bnsw-search-card h2 a {
  color: #06152b;
  text-decoration: none;
}

.bnsw-search-card h2 a:hover {
  color: #045cb4;
}

.bnsw-search-card p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  margin-bottom: 18px;
}

.bnsw-search-card__file {
  margin-bottom: 18px;
}

.bnsw-search-card__link {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border: 1px solid #045cb4;
  border-radius: 999px;
  color: #045cb4;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: all 0.2s ease;
}

.bnsw-search-card__link:hover {
  background: #045cb4;
  color: #ffffff;
  text-decoration: none;
}

@media (max-width: 767px) {
  .bnsw-search-card__top {
    display: block;
  }

  .bnsw-search-card__parent {
    display: block;
    max-width: none;
    margin-top: 10px;
    text-align: left;
  }
}

.bnsw-search-card__tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.bnsw-search-card__ai-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    padding: 5px 10px;

    font-size: 12px;
    font-weight: 600;
    line-height: 1;

    border-radius: 20px;

    background: #f3edff;
    color: #5b2fa6;

    white-space: nowrap;
}

.bnsw-search-card__ai-tag i {
    font-size: 11px;
}

#cdm_header_forgot_user{
	width:100%;
	margin:5px;
}

#cdm_header_reset_password{
	width:100%;
	margin:5px;
}
#cdm_header_reset_confirm_password{
	width:100%;
	margin:5px;
}

#reg_church_name{
	margin: 5px;
}

@media(max-width: 768px){
	
	.bnsw-mobile-toggle{
		display:none;
	}
}