/* =========================================
   SPECIT header account menu exact styling
   ========================================= */

/* right header area */
.header-panel-right {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 34px;
    position: relative;
}

/* hide minicart completely */
#desk_cart-wrapper > .cdz-dropdown,
#desk_cart-wrapper .action.showcart,
#desk_cart-wrapper .minicart-wrapper,
#desk_cart-wrapper .block-minicart,
#desk_cart-wrapper .counter.qty,
#desk_cart-wrapper .cart-subtotal,
#desk_cart-wrapper .subtotal,
#desk_cart-wrapper .amount,
#desk_cart-wrapper .price,
#desk_cart-wrapper .empty,
#desk_cart-wrapper .showcart {
    display: none !important;
}

/* keep our account menu only */
#desk_cart-wrapper .viaspec-account-menu {
    display: flex !important;
}

/* minicart wrapper becomes auth container */
#desk_cart-wrapper {
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    min-width: auto !important;
}

/* main account wrapper */
.viaspec-account-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    z-index: 9999;
    font-family: Arial, Helvetica, sans-serif;
    margin-top: 2px;
}

/*
 * Guest links show by default (visible before any JS runs) since most
 * visitors are guests — avoids a blank flash for the common case without
 * needing to read CustomerSession server-side, which this block can't do
 * safely: it's wired into default.xml, applied on cacheable pages (home,
 * CMS, category/product) where Magento's DepersonalizePlugin blanks the
 * session during render regardless of the real visitor's login state, so a
 * server-rendered guess here would be wrong for logged-in customers on
 * exactly those pages. Client-side JS (see minicart.phtml) still corrects
 * this to the logged-in view once customer-data resolves the real session.
 */
.viaspec-guest-links {
    display: flex;
    align-items: center;
    gap: 26px;
    white-space: nowrap;
}

/* hide once JS confirms the visitor is logged in */
.viaspec-account-menu.is-logged-in .viaspec-guest-links {
    display: none;
}

/* logged-in dropdown default hidden */
.viaspec-user-dropdown {
    display: none;
    position: relative;
}

/* show only for logged-in */
.viaspec-account-menu.is-logged-in .viaspec-user-dropdown {
    display: block;
}

/* login/register link style */
.viaspec-guest-links a,
.viaspec-auth-link {
    position: relative;
    color: #222222 !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    font-family: Arial, Helvetica, sans-serif !important;
    padding-bottom: 6px;
    transition: color 0.2s ease;
}

/* left to right underline */
.viaspec-guest-links a::after,
.viaspec-auth-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: #222222;
    transition: width 0.25s ease;
}

.viaspec-guest-links a:hover,
.viaspec-auth-link:hover {
    color: #222222 !important;
    text-decoration: none !important;
}

.viaspec-guest-links a:hover::after,
.viaspec-auth-link:hover::after {
    width: 100%;
}

/* logged-in dropdown button */
.viaspec-user-toggle {
    min-width: 148px;
    height: 42px;
    border: 0 !important;
    background: transparent !important;
    color: #4d5668 !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    box-shadow: none !important;
    font-family: Arial, Helvetica, sans-serif !important;
}

.viaspec-user-toggle:hover,
.viaspec-user-toggle:focus,
.viaspec-user-toggle:active {
    background: transparent !important;
    color: #4d5668 !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

.viaspec-user-name {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
        padding: 0px 10px;
        text-transform: capitalize;
}

/* dropdown arrow */
.viaspec-dropdown-arrow {
    width: 8px;
    height: 8px;
    margin: 0px 8px 0px 0px;
    border-right: 1.5px solid #4d5668;
    border-bottom: 1.5px solid #4d5668;
    transform: rotate(45deg);
    margin-top: -4px;
    flex-shrink: 0;
}

.viaspec-user-dropdown.active .viaspec-dropdown-arrow {
    transform: rotate(225deg);
    margin-top: 3px;
}

/* dropdown panel */
.viaspec-dropdown-panel {
    display: none;
    position: absolute;
    top: 42px;
    right: 0;
    width: 200px;
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    overflow: hidden;
    z-index: 99999;
}

.viaspec-user-dropdown.active .viaspec-dropdown-panel {
    display: block;
}

.viaspec-dropdown-title {
       font-size: 14px;
    font-weight: 300;
    padding: 16px 18px 10px;
    color: rgb(156 164 176);
    text-align: left;
    padding: 16px 18px 10px;
    background: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
}

.viaspec-dropdown-panel a {
    text-align: left;
    display: block;
    padding: 14px 18px;
    color: #4d5668 !important;
    font-size: 15px;
    font-weight: 400;
    text-decoration: none !important;
    border-bottom: 1px solid #efefef;
    background: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
}

.viaspec-dropdown-panel a:hover {
    background: #f7f7f7;
}

/* fine tune Codazon header alignment */
.page-header .header-middle .header-panel-row {
    align-items: center;
}

.page-header .header-middle .header-panel-right {
    padding-top: 2px;
}

/* remove default list/bullet styling */
.viaspec-account-menu ul,
.viaspec-account-menu li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* mobile */
@media (max-width: 767px) {
    .header-panel-right {
        gap: 16px;
    }

    .viaspec-guest-links {
        gap: 16px;
    }

    .viaspec-guest-links a,
    .viaspec-auth-link {
        font-size: 15px !important;
    }

    .viaspec-user-toggle {
        min-width: 125px;
        font-size: 14px !important;
    }

    .viaspec-dropdown-panel {
        width: 190px;
        top: 38px;
    }

    .viaspec-dropdown-panel a {
        font-size: 15px;
    }
}
.header-panel-right .search-link{
    display: none !important;

}
.header-panel-right .authorization-link .account-wrapper{
    display: none;
}
.header-panel-right .linkslist-link{
    display: none !important;
}