/* Fix: Login/Register wrapping to a new line on Layout Six — force the
   Cart / Contact / Search / Login-Register group onto a single line and
   shrink each piece just enough to fit. Loaded last so it safely
   overrides the original theme rules without editing style.css directly. */

.header-right-wrapper {
    display: flex !important;
    justify-content: flex-end !important;
}

.header-sidebar {
    display: flex !important;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    white-space: nowrap !important;
}

button.cart_btn.headers-button {
    flex: 0 0 auto !important;
    margin: 0 !important;
    width: 38px !important;
    height: 38px !important;
    line-height: 38px !important;
    font-size: 14px !important;
}

.header-btn {
    flex: 0 0 auto !important;
}
.header-btn a {
    padding: 8px 14px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
}

.header-src-btn {
    flex: 0 0 auto !important;
}
.header-src-btn .search-box-btn {
    width: 38px !important;
    height: 38px !important;
    line-height: 38px !important;
    font-size: 14px !important;
}

.educate-header-from {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
}
.educate-header-from a {
    font-size: 12px !important;
}

/* Account icon (replaces the old Login/Register text links) */
.account-icon-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: #f4f4f4 !important;
    color: #1e1e1e !important;
    font-size: 15px !important;
}
.account-icon-btn:hover {
    background: #D10000 !important;
    color: #fff !important;
}
.account-dropdown-menu {
    min-width: 140px !important;
    border-radius: 8px !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12) !important;
    border: none !important;
    padding: 6px !important;
}
.account-dropdown-menu .dropdown-item {
    border-radius: 6px !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
}
.account-dropdown-menu .dropdown-item:hover {
    background: #D10000 !important;
    color: #fff !important;
}

/* Reliable pure-CSS dropdown (no Bootstrap JS dependency, avoids the
   blank white box some browsers showed with the JS-toggled version) */
.account-dropdown-wrap {
    position: relative !important;
}
.account-dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    margin-top: 10px !important;
    background: #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15) !important;
    padding: 6px !important;
    min-width: 140px !important;
    list-style: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(6px) !important;
    transition: all 0.2s ease !important;
    z-index: 999 !important;
}
.account-dropdown-wrap:hover .account-dropdown-menu,
.account-dropdown-wrap:focus-within .account-dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}
.account-dropdown-menu li { margin: 0 !important; }
.account-dropdown-menu li a {
    display: block !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    color: #1e1e1e !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
}
.account-dropdown-menu li a:hover {
    background: #D10000 !important;
    color: #fff !important;
}

/* Top bar: keep phone / email / Flow Us / social icons plain white,
   not the theme accent color */
.header-top-area.style-two .header-top-icon-list ul li:last-child,
.header-top-area.style-two .header-top-icon-list ul li:last-child i,
.header-top-area.style-two li.header-flow-title a {
    color: #ffffff !important;
}
.header-top-area.style-two li.header-flow-title a::before {
    background-color: #ffffff !important;
}
.header-top-area.style-two .header-top-social-icon-list ul li a i:hover {
    color: #ffffff !important;
    border-color: #ffffff !important;
}

/* Sticky header (dark background #1e1e1e): the theme already makes the
   main nav links white on sticky, but forgot the Login/Register link —
   match it so it stays readable on the dark bar */
.sticky .educate-header-from a,
.sticky .account-icon-btn {
    color: #ffffff !important;
}
.sticky .account-icon-btn {
    background: rgba(255, 255, 255, 0.12) !important;
}

/* Shrink a touch more on tighter laptop widths so nothing ever wraps */
@media (min-width: 992px) and (max-width: 1300px) {
    .header-sidebar { gap: 6px !important; }
    .header-btn a { padding: 6px 10px !important; font-size: 12px !important; }
    button.cart_btn.headers-button,
    .header-src-btn .search-box-btn {
        width: 34px !important;
        height: 34px !important;
        line-height: 34px !important;
    }
    .educate-header-from a { font-size: 11px !important; }
}
