
/* Contact us: hidden */
div.signinyouraccount > span { display: none !important; }

div.signinyouraccount { display: flex !important; align-items: center; margin-left: 8px !important; }

/* Sign in / Sign out pill */
div.signinyouraccount > a {
    display: inline-flex !important; align-items: center; gap: 7px; box-sizing: border-box;
    float: none !important; width: auto !important; height: 34px !important; margin: 0 !important;
    padding: 0 14px 0 6px !important; white-space: nowrap; cursor: pointer;
    font: 600 13px/1 'Open Sans', Arial, Helvetica, sans-serif !important; letter-spacing: .2px;
    text-transform: none !important; color: #1d2b36 !important; text-decoration: none !important;
    background: #fff none !important; border: 1px solid #cfd8dc !important; border-radius: 999px !important;
    opacity: 1 !important; transition: border-color .15s, box-shadow .15s;
}
div.signinyouraccount > a::before {
    content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%;
    background: #eef3f7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231c3550' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6'/%3E%3C/svg%3E") no-repeat center;
}
div.signinyouraccount > a:hover, div.signinyouraccount > a:focus-visible {
    border-color: #1c6b86 !important; text-decoration: none !important; outline: 0;
}
div.signinyouraccount > a:focus-visible { box-shadow: 0 0 0 3px rgba(28,107,134,.2); }
div.signinyouraccount > a > span { display: none !important; } /* old hover tooltip */

/* small screens: round icon-only button, top aligned with the currency button */
@media (max-width: 767px) {
    div.signinyouraccount { margin-top: 4px !important; padding-top: 0 !important; }
    div.signinyouraccount > a { width: 30px !important; height: 30px !important; padding: 0 !important; justify-content: center; gap: 0; font-size: 0 !important; }
    div.signinyouraccount > a::before { width: 24px; height: 24px; background-color: transparent; }
}

/* My Cart / Wish List: original images, space between the two boxes */
#ulHeaderIcon > li + li { margin-left: 10px !important; }

/* ---- Signed in: "Hello, <name>" becomes an account button (same look as the currency / sign-in buttons)
        and the existing account menu opens under it (markup: Msg in the master pages code). ---- */
div.welcometext { display: flex !important; align-items: center; float: left; margin: 6px 0 0 8px !important; padding: 0 !important;
                  font-size: 0 !important; text-transform: none !important; } /* font-size 0 hides the loose "Hello," */
.welcometext #myac.box { position: relative; display: inline-flex; padding: 0; font-size: 13px; }
.welcometext #myac.box::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; } /* keeps hover while moving to the menu */
.welcometext #myac.box > a {
    position: relative; display: inline-flex; align-items: center; gap: 7px; box-sizing: border-box; height: 34px;
    padding: 0 30px 0 6px; white-space: nowrap; text-decoration: none !important;
    font: 600 13px/1 'Open Sans', Arial, Helvetica, sans-serif; letter-spacing: .2px; color: #1d2b36 !important;
    background: #fff; border: 1px solid #cfd8dc; border-radius: 999px; transition: border-color .15s, box-shadow .15s;
}
.welcometext #myac.box > a b { font-weight: 600; }
.welcometext #myac.box > a::before {
    content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%;
    background: #eef3f7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231c3550' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6'/%3E%3C/svg%3E") no-repeat center;
}
.welcometext #myac.box > a::after {
    content: ""; position: absolute; right: 12px; top: 50%; width: 6px; height: 6px; margin-top: -5px;
    border-right: 2px solid #5b6b77; border-bottom: 2px solid #5b6b77; transform: rotate(45deg); transition: transform .15s;
}
.welcometext #myac.box:hover > a, .welcometext #myac.box:focus-within > a { border-color: #1c6b86; }
.welcometext #myac.box:hover > a::after, .welcometext #myac.box:focus-within > a::after { transform: rotate(-135deg); margin-top: -1px; }

/* desktop / tablet (768px+): a little more air - between the top row (currency, sign in / account)
   and the row below (search, country, supplier, cart, wish list), and between the buttons */
@media (min-width: 768px) {
    div.welcome_area { margin-bottom: 10px !important; }
    div.signinyouraccount { margin-left: 14px !important; }
    div.welcometext { margin-left: 0 !important; }                 /* empty while signed out */
    div.welcometext:has(#myac) { margin-left: 14px !important; }   /* signed in: account button */
}

/* phones (< 768px): account button = round icon-only button in the place of the (hidden) Sign out button */
@media (max-width: 767px) {
    div.welcometext { float: right !important; margin: 4px 0 0 0 !important; top: 2px !important; } /* responsive css places it absolute at top:21px */
    div.welcome_area { min-height: 34px; } /* same row height signed in (account button is absolute) as signed out */
    .welcometext #myac.box > a { width: 30px; height: 30px; padding: 0; justify-content: center; gap: 0; font-size: 0; }
    .welcometext #myac.box > a::before { width: 24px; height: 24px; background-color: transparent; }
    .welcometext #myac.box > a::after { display: none; }
}

.welcometext #myac .arrow_Sbox {
    display: none; position: absolute; top: calc(100% + 8px); right: 0; left: auto !important; z-index: 10050;
}
.welcometext #myac .arrow_Sbox::before, .welcometext #myac .arrow_Sbox::after { display: none !important; }
.welcometext #myac.box:hover .arrow_Sbox, .welcometext #myac.box:focus-within .arrow_Sbox { display: block; }

/* Sign out is in the account menu, so the separate Sign out button is hidden while signed in
   (browsers without :has() keep showing it - harmless) */
.welcome_area:has(#myac) div.signinyouraccount { display: none !important; }
