/**
 * DECENTRALIGN AM Header & Navigation Bar; adapted from CLICK
 * Package: DECENTRALIGN AM Astra Child Theme
 */

/* Header layout and navigation controls. */
.dc-am-top-header-bar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 30px;
    width: 100%;
    box-sizing: border-box;
}

.dc-am-top-header-container {
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.dc-am-header-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
}

.dc-am-header-logo-link svg {
    display: block;
    height: 29px;
    width: auto;
    max-height: 35px;
    transition: opacity 0.2s ease;
}

.dc-am-header-logo-link:hover svg {
    opacity: 0.85;
}

.dc-am-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.dc-am-header-right--guest {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.dc-am-header-policy-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
    text-decoration: none !important;
    line-height: 1.2;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.dc-am-header-policy-link svg {
    color: #64748b;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.dc-am-header-policy-link:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07);
    text-decoration: none !important;
    transform: translateY(-1px);
}

.dc-am-header-policy-link:hover svg {
    color: var(--ast-global-color-0);
    transform: scale(1.08);
}

.dc-am-patient-counter-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 6px 14px;
    border-radius: 12px;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dc-am-patient-counter-badge:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.dc-am-patient-counter-badge:hover .dc-am-counter-value {
    color: var(--ast-global-color-0);
}

.dc-am-counter-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    transition: transform 0.2s ease;
}

.dc-am-patient-counter-badge:hover .dc-am-counter-icon {
    transform: scale(1.08);
}

.dc-am-counter-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.dc-am-counter-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

.dc-am-counter-value {
    font-size: 13px;
    color: #0f172a;
    font-weight: 700;
}

/* Header Order Notifications Bell (Plugin Shortcode) */
.dc-am-header-notifications-wrap {
    display: inline-flex;
    align-items: center;
    position: relative;
}

.dc-am-header-notifications-wrap .wcon-shortcode {
    position: relative;
    font-family: inherit;
    display: flex;
    align-items: center;
}

.dc-am-header-notifications-wrap .wcon-button {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #475569 !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
    position: relative !important;
    outline: none !important;
    box-sizing: border-box !important;
}

.dc-am-header-notifications-wrap .wcon-button:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
}

.dc-am-header-notifications-wrap .wcon-button i {
    font-size: 17px !important;
    line-height: 1 !important;
    color: inherit !important;
}

.dc-am-header-notifications-wrap .wcon-badge {
    position: absolute !important;
    top: -5px !important;
    right: -5px !important;
    background: #ef4444 !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    border-radius: 999px !important;
    padding: 0 5px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    min-width: 18px !important;
    height: 18px !important;
    line-height: 14px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4) !important;
    font-family: inherit !important;
}

.dc-am-header-notifications-wrap .wcon-popup {
    border-radius: 18px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.18), 0 0 1px 1px rgba(0, 0, 0, 0.03) !important;
    overflow: hidden !important;
    top: calc(100% + 12px) !important;
    right: 0 !important;
    font-family: inherit;
}

.dc-am-header-notifications-wrap .wcon-popup-header {
    background: #f8fafc !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 14px 18px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

.dc-am-header-notifications-wrap .wcon-popup-footer {
    background: #f8fafc !important;
    border-top: 1px solid #f1f5f9 !important;
    padding: 12px 18px !important;
}

.dc-am-header-user-profile {
    display: flex;
    align-items: center;
    position: relative;
}

.dc-am-user-profile-trigger {
    background: transparent;
    border: none;
    padding: 4px 6px;
    margin: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1e293b;
    border-radius: 12px;
    transition: background-color 0.2s ease;
    outline: none;
    -webkit-appearance: none;
}

.dc-am-user-profile-trigger:hover,
.dc-am-dropdown-wrap[open] .dc-am-user-profile-trigger {
    background-color: #f8fafc;
}

.dc-am-user-avatar-wrap {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dc-am-user-avatar-wrap img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.dc-am-user-star-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #f59e0b;
    color: #ffffff;
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    line-height: 1;
}

.dc-am-user-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
}

.dc-am-chevron-icon {
    color: #64748b;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.dc-am-dropdown-wrap[open] .dc-am-chevron-icon {
    transform: rotate(180deg);
}

/* User Dropdown Menu */
.dc-am-user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 210px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    padding: 6px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.97);
    transform-origin: top right;
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
    z-index: 99999;
}

.dc-am-dropdown-wrap[open] .dc-am-user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dc-am-dropdown-header {
    padding: 8px 10px 6px;
}

.dc-am-dropdown-user-name {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dc-am-dropdown-user-role {
    display: block;
    font-size: 11px;
    color: #64748b;
    margin-top: 3px;
    font-weight: 500;
}

.dc-am-dropdown-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 4px 0;
}

.dc-am-dropdown-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

.dc-am-dropdown-list li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.dc-am-dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 8px 12px !important;
    border-radius: 9px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    text-decoration: none !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
}

.dc-am-dropdown-item:hover {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

.dc-am-dropdown-item--logout {
    color: #ef4444 !important;
}

.dc-am-dropdown-item--logout:hover {
    background-color: #fef2f2 !important;
    color: #dc2626 !important;
}

.dc-am-dropdown-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Hide default Astra header completely */
body.dc-am-custom-header #masthead.site-header,
body.dc-am-custom-header .main-header-bar-wrap,
body.dc-am-custom-header .elementor-location-header,
body.dc-am-custom-header #ast-fixed-header {
    display: none !important;
}

/* Header Responsive Tweaks */
@media (max-width: 768px) {
    .dc-am-patient-counter-badge {
        display: none !important;
    }
}

@media (max-width: 640px) {
    .dc-am-top-header-bar {
        padding: 10px 16px;
    }

    .dc-am-header-logo-link svg {
        height: 24px;
        max-height: 26px;
    }

    .dc-am-header-right {
        gap: 10px;
    }
}

@media (max-width: 460px) {
    .dc-am-user-name {
        display: none;
    }
}

/* AM adapters: site logo, native disclosure, long names and mobile popup. */
#dc-am-site-header { position: relative; z-index: 100; font-family: inherit; color: #334155; }
#dc-am-site-header, #dc-am-site-header * { box-sizing: border-box; }
#dc-am-site-header .dc-am-header-logo-link { flex-shrink: 0; }
#dc-am-site-header .dc-am-brand-image { width: auto; max-width: 220px; height: 36px; object-fit: contain; }
#dc-am-site-header .dc-am-brand-name { display: block; font-size: 20px; line-height: 1.2; letter-spacing: .045em; font-weight: 700; color: #5f566d; }
#dc-am-site-header .dc-am-brand-name small { display: block; margin-top: 3px; font-size: 8px; letter-spacing: .38em; color: #9b8bac; }
#dc-am-site-header details.dc-am-header-user-profile { display: block; }
#dc-am-site-header summary { list-style: none; }
#dc-am-site-header summary::-webkit-details-marker { display: none; }
#dc-am-site-header .dc-am-user-name { max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
#dc-am-site-header .dc-am-user-profile-trigger { max-width: 330px; }
#dc-am-site-header .dc-am-header-right { min-width: 0; }
#dc-am-site-header .dc-am-user-dropdown-menu { width: 240px; max-width: calc(100vw - 32px); }
#dc-am-site-header .dc-am-counter-value { white-space: nowrap; }
#dc-am-site-header .dc-am-header-sign-in { color: #7450b9; font-size: 13px; text-decoration: none; }
#dc-am-site-header :focus-visible { outline: 2px solid #967bd0 !important; outline-offset: 3px; }
#dc-am-site-header .wcon-popup { width: 360px; max-width: calc(100vw - 32px); }
#dc-am-site-header .wcon-badge:empty, #dc-am-site-header .wcon-badge[data-count="0"] { display: none !important; }
#dc-am-site-header .wcon-button i { display: none; }
#dc-am-site-header .screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); border: 0; white-space: nowrap; }
#dc-am-site-header .wcon-button::before { content: ''; display: block; width: 18px; height: 18px; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8a6 6 0 0 0-12 0c0 7-3 7-3 9h18c0-2-3-2-3-9M10 21h4'/%3E%3C/svg%3E") center / contain no-repeat; }
body.dc-auth-page #dc-am-site-header { display: none !important; }
@media (max-width: 1100px) {
    #dc-am-site-header .dc-am-header-right { gap: 12px; }
    #dc-am-site-header .dc-am-user-name { max-width: 145px; }
    #dc-am-site-header .dc-am-brand-name { font-size: 17px; }
    #dc-am-site-header .dc-am-brand-image { max-width: 180px; }
}
@media (max-width: 768px) {
    #dc-am-site-header .wcon-popup { position: fixed; top: 76px !important; right: 12px !important; min-width: 0; width: min(360px, calc(100vw - 24px)); max-width: none; }
}
@media (max-width: 460px) {
    #dc-am-site-header .dc-am-brand-name { font-size: 15px; }
    #dc-am-site-header .dc-am-brand-image { max-width: 145px; height: 30px; }
    #dc-am-site-header .dc-am-user-name { display: none; }
    #dc-am-site-header .dc-am-header-right { gap: 8px; }
}


/* DEC palette: keep these controls aligned with the account and auth screens. */
#dc-am-site-header {
    --dc-header-ink: #29243b;
    --dc-header-muted: #797489;
    --dc-header-purple: #7752cf;
    --dc-header-line: #e5dcf5;
    --dc-header-lavender: #b8a6ff;
    --dc-header-soft: #f7f4ff;
    padding: 18px 30px;
    background: #fff;
    border-bottom: 1px solid var(--dc-header-line);
    color: var(--dc-header-ink);
    font-family: 'Exo 2', sans-serif;
    line-height: 1.4;
}
#dc-am-site-header .dc-am-top-header-container { gap: 24px; min-height: 48px; }
#dc-am-site-header .dc-am-header-logo-link { border-radius: 8px; transition: opacity .18s ease; }
#dc-am-site-header .dc-am-header-logo-link:hover { opacity: .8; }
#dc-am-site-header .dc-am-brand-image { display: block; height: 38px; max-width: 230px; }
#dc-am-site-header .dc-am-brand-name { color: var(--dc-header-purple); font-size: 23px; letter-spacing: .035em; line-height: 1.1; }
#dc-am-site-header .dc-am-brand-name small { margin-top: 6px; color: #9881be; font-size: 8px; font-weight: 500; letter-spacing: .37em; }
#dc-am-site-header .dc-am-header-right { gap: 14px; }

/* Matching lavender outlines for orders, notifications and the profile. */
#dc-am-site-header .dc-am-patient-counter-badge {
    min-height: 48px;
    padding: 8px 14px;
    border: 1px solid var(--dc-header-lavender);
    border-radius: 16px;
    background: #fff;
    color: var(--dc-header-purple);
    transition: background .18s ease, border-color .18s ease;
}
#dc-am-site-header .dc-am-patient-counter-badge:hover { background: var(--dc-header-soft); border-color: var(--dc-header-purple); transform: none; box-shadow: none; }
#dc-am-site-header .dc-am-counter-icon { color: var(--dc-header-purple); }
#dc-am-site-header .dc-am-counter-text { display: inline-flex; flex-direction: row; align-items: center; gap: 12px; }
#dc-am-site-header .dc-am-counter-label { color: var(--dc-header-purple); font-size: 13px; font-weight: 500; }
#dc-am-site-header .dc-am-counter-value { display: inline-flex; justify-content: center; min-width: 26px; padding: 4px 7px; border-radius: 8px; background: var(--dc-header-soft); color: var(--dc-header-purple); font-size: 13px; font-weight: 600; }
#dc-am-site-header .wcon-button {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    border-color: var(--dc-header-line) !important;
    border-radius: 16px !important;
    color: var(--dc-header-purple) !important;
    box-shadow: none !important;
    transform: none !important;
    transition: background .18s ease, border-color .18s ease !important;
}
#dc-am-site-header .wcon-button:hover { background: var(--dc-header-soft) !important; border-color: var(--dc-header-lavender) !important; }
#dc-am-site-header .wcon-button::before { width: 20px; height: 20px; }
#dc-am-site-header .wcon-badge { min-width: 20px !important; height: 20px !important; background: var(--dc-header-purple) !important; line-height: 16px !important; box-shadow: none !important; animation: none !important; }
#dc-am-site-header .dc-am-user-profile-trigger {
    min-height: 48px;
    padding: 5px 12px 5px 6px;
    border: 1px solid var(--dc-header-line);
    border-radius: 16px;
    background: #fff;
    color: var(--dc-header-ink);
    transition: background .18s ease, border-color .18s ease;
}
#dc-am-site-header .dc-am-user-profile-trigger:hover,
#dc-am-site-header details[open] .dc-am-user-profile-trigger { border-color: var(--dc-header-lavender); background: var(--dc-header-soft); }
#dc-am-site-header .dc-am-user-avatar-wrap { display: block; width: 36px; height: 36px; padding: 2px; border: 1px solid var(--dc-header-line); background: #fff; }
#dc-am-site-header .dc-am-user-avatar-wrap img { width: 30px; height: 30px; }
#dc-am-site-header .dc-am-user-star-badge { display: none; }
#dc-am-site-header .dc-am-user-name { max-width: 230px; color: var(--dc-header-ink); font-size: 13px; font-weight: 500; }
#dc-am-site-header .dc-am-chevron-icon { color: #9881be; }
#dc-am-site-header .dc-am-user-dropdown-menu { top: calc(100% + 12px); width: 280px; max-height: calc(100dvh - 110px); overflow-y: auto; padding: 8px; border-color: var(--dc-header-line); border-radius: 20px; box-shadow: 0 14px 42px #39205c14; }
#dc-am-site-header .dc-am-dropdown-header { padding: 14px 14px 12px; border-radius: 13px; background: var(--dc-header-soft); }
#dc-am-site-header .dc-am-dropdown-user-name { overflow-wrap: anywhere; white-space: normal; color: var(--dc-header-ink); font-size: 14px; font-weight: 600; line-height: 1.4; }
#dc-am-site-header .dc-am-dropdown-user-role { margin-top: 4px; color: var(--dc-header-muted); font-size: 12px; }
#dc-am-site-header .dc-am-dropdown-divider { margin: 7px 6px; background: var(--dc-header-line); }
#dc-am-site-header .dc-am-dropdown-list { gap: 3px !important; }
#dc-am-site-header .dc-am-dropdown-item { gap: 12px !important; min-height: 44px; padding: 11px 14px !important; border-radius: 12px !important; color: var(--dc-header-ink) !important; font-size: 13px !important; }
#dc-am-site-header .dc-am-dropdown-item:hover { background: var(--dc-header-soft) !important; color: var(--dc-header-purple) !important; }
#dc-am-site-header .dc-am-dropdown-icon { color: var(--dc-header-purple); }
#dc-am-site-header .dc-am-dropdown-item--logout { color: #a34863 !important; }
#dc-am-site-header .dc-am-dropdown-item--logout .dc-am-dropdown-icon { color: inherit; }
#dc-am-site-header .dc-am-dropdown-item--logout:hover { color: #963b56 !important; background: #fff2f6 !important; }
#dc-am-site-header .dc-am-header-sign-in { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border: 1px solid var(--dc-header-lavender); border-radius: 14px; color: var(--dc-header-purple); background: #fff; font-weight: 500; white-space: nowrap; }
#dc-am-site-header .dc-am-header-sign-in:hover { background: var(--dc-header-soft); }

/* Reuse the existing notification popup and actions in the same DEC palette. */
#dc-am-site-header .wcon-popup { top: calc(100% + 14px) !important; width: 380px; border-color: var(--dc-header-line) !important; border-radius: 20px !important; box-shadow: 0 14px 42px #39205c14 !important; }
#dc-am-site-header .wcon-popup-header { min-height: 54px; border-color: var(--dc-header-line) !important; background: var(--dc-header-soft) !important; color: var(--dc-header-ink) !important; font-weight: 600 !important; }
#dc-am-site-header .wcon-popup-close { color: var(--dc-header-purple); padding: 6px; border-radius: 8px; }
#dc-am-site-header .wcon-popup-list { max-height: min(360px, calc(100dvh - 240px)); color: var(--dc-header-muted); font-size: 13px; }
#dc-am-site-header .wcon-item { padding: 14px 18px; border-color: var(--dc-header-line); }
#dc-am-site-header .wcon-title { color: var(--dc-header-ink); line-height: 1.4; }
#dc-am-site-header .wcon-message { color: var(--dc-header-muted); }
#dc-am-site-header .wcon-popup-footer { padding: 13px 18px !important; border-color: var(--dc-header-line) !important; background: var(--dc-header-soft) !important; }
#dc-am-site-header .wcon-view-all { color: var(--dc-header-purple); font-size: 13px; }
#dc-am-site-header .wcon-actions button { border-color: var(--dc-header-line); border-radius: 9px; color: var(--dc-header-purple); font: inherit; }
#dc-am-site-header .wcon-actions button:hover { background: var(--dc-header-soft); }
#dc-am-site-header :focus-visible { outline-color: var(--dc-header-purple) !important; }

@media (max-width: 1100px) {
    #dc-am-site-header .dc-am-header-right { gap: 10px; }
    #dc-am-site-header .dc-am-user-name { max-width: 150px; }
    #dc-am-site-header .dc-am-brand-image { max-width: 190px; }
    #dc-am-site-header .dc-am-brand-name { font-size: 20px; }
}
@media (max-width: 768px) {
    #dc-am-site-header { padding: 14px 20px; }
    #dc-am-site-header .wcon-popup { top: 88px !important; right: 16px !important; width: min(380px, calc(100vw - 32px)); }
}
@media (max-width: 460px) {
    #dc-am-site-header { padding: 12px 16px; }
    #dc-am-site-header .dc-am-top-header-container { gap: 14px; }
    #dc-am-site-header .dc-am-brand-name { font-size: 17px; }
    #dc-am-site-header .dc-am-brand-name small { font-size: 7px; letter-spacing: .3em; }
    #dc-am-site-header .dc-am-brand-image { max-width: 145px; height: 32px; }
    #dc-am-site-header .dc-am-chevron-icon { display: none; }
    #dc-am-site-header .dc-am-user-profile-trigger { width: 48px; padding: 5px; justify-content: center; }
    #dc-am-site-header .wcon-popup { top: 84px !important; }
}
@media (prefers-reduced-motion: reduce) {
    #dc-am-site-header *, #dc-am-site-header *::before { transition: none !important; animation: none !important; }
}

/* Compact account-language buttons; keep the shared profile preference. */
#dc-am-site-header .dc-am-language-form { display: grid; gap: 10px; margin: 5px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--dc-header-soft); }
#dc-am-site-header #dc-am-language-label { color: var(--dc-header-muted); font-size: 12px; line-height: 1.5; }
#dc-am-site-header .dc-am-language-buttons { display: grid; grid-template-columns: repeat(4, minmax(0, 48px)); gap: 8px; }
#dc-am-site-header .dc-am-language-buttons button { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-width: 0; min-height: 44px; aspect-ratio: 1; margin: 0; padding: 0; border: 1px solid var(--dc-header-line); border-radius: 10px; background: #fff; color: var(--dc-header-ink); font: inherit; font-size: 12px; font-weight: 600; line-height: 1; cursor: pointer; box-shadow: none; transition: background .16s ease, color .16s ease, border-color .16s ease; }
#dc-am-site-header .dc-am-language-buttons button:hover { border-color: var(--ast-global-color-0); color: var(--ast-global-color-0); }
#dc-am-site-header .dc-am-language-buttons button[aria-pressed="true"] { border-color: var(--ast-global-color-0); background: var(--ast-global-color-0); color: #fff; }
#dc-am-site-header .dc-am-language-buttons button:focus-visible { outline: 2px solid var(--ast-global-color-0); outline-offset: 3px; }
