:root {
    --drivebit-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --drivebit-city-color: #6b46c1;
    --drivebit-nav-color: #000;
    --drivebit-header-max: 1200px;
    --drivebit-header-pad-x: 40px;
}

.drivebit-unread-banner {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    max-height: 0;
    min-height: 0;
    overflow: hidden;
    background: #fff;
    color: transparent;
    text-align: center;
    text-decoration: none;
    font-size: 0;
    line-height: 0;
    font-weight: 500;
    font-family: var(--drivebit-font);
    pointer-events: none;
    box-sizing: border-box;
}

.drivebit-unread-banner--visible {
    max-height: none;
    min-height: 0;
    padding: 8px var(--drivebit-header-pad-x);
    font-size: 14px;
    line-height: 1.25;
    background: #000;
    color: #fff;
    pointer-events: auto;
    cursor: pointer;
}

.drivebit-app-header {
    position: relative;
    background: #fff;
    font-family: var(--drivebit-font);
    flex-shrink: 0;
}

.drivebit-app-header-inner {
    width: 100%;
    max-width: var(--drivebit-header-max);
    margin: 0 auto;
    padding: 12px var(--drivebit-header-pad-x);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-sizing: border-box;
    min-width: 320px;
}

.drivebit-app-header--unread-visible .drivebit-app-header-inner {
    padding-top: 0;
    align-items: center;
}

.drivebit-app-header--unread-visible .drivebit-header-logo {
    line-height: 0;
    display: flex;
}

.drivebit-header-logo {
    cursor: pointer;
    flex-shrink: 0;
    text-decoration: none;
}

.drivebit-header-logo .turo-logo {
    width: 120px;
    height: 40px;
    max-width: 120px;
    max-height: 40px;
    object-fit: contain;
    display: block;
}

.drivebit-header-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex: 1;
    min-width: 0;
}

.drivebit-header-nav a {
    color: var(--drivebit-nav-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.drivebit-header-nav a:hover {
    text-decoration: underline;
}

.drivebit-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    position: relative;
}

#drivebit-header-compose {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 40px;
}

.drivebit-header-city {
    color: var(--drivebit-city-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.drivebit-header-city:hover {
    text-decoration: underline;
}

.drivebit-header-city[hidden] {
    display: none !important;
}

.drivebit-header-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
}

.drivebit-header-menu-btn img {
    display: block;
}

.drivebit-header-avatar {
    position: absolute;
    inset: 0;
    margin: auto;
    border-radius: 50%;
    object-fit: cover;
}

.drivebit-header-avatar[hidden] {
    display: none !important;
}

.drivebit-header-nav-mobile {
    max-width: var(--drivebit-header-max);
    margin: 0 auto 8px;
    padding: 0 var(--drivebit-header-pad-x) 12px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    box-sizing: border-box;
    font-family: var(--drivebit-font);
}

.drivebit-header-nav-mobile[hidden] {
    display: none !important;
}

.drivebit-header-nav-mobile a {
    color: var(--drivebit-nav-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

.drivebit-header-nav-mobile a:hover {
    text-decoration: underline;
}

.drivebit-butter-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: transparent;
}

.drivebit-butter-overlay[hidden] {
    display: none !important;
}

.drivebit-butter-menu {
    position: fixed;
    top: 72px;
    right: 36px;
    width: 280px;
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 8px;
    box-sizing: border-box;
    font-family: var(--drivebit-font);
}

.drivebit-butter-menu[hidden] {
    display: none !important;
}

.drivebit-butter-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
    color: #000;
    font-size: 14px;
}

.drivebit-butter-item:hover {
    background: #f3f4f6;
}

.drivebit-butter-item img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    object-fit: contain;
}

#root.drivebit-app-main,
#root .drivebit-app-main {
    position: relative;
    box-sizing: border-box;
    max-width: var(--drivebit-header-max);
    margin: 0 auto;
    min-width: 320px;
    width: 100%;
    padding: 20px var(--drivebit-header-pad-x) 40px;
    font-family: var(--drivebit-font);
}

@media (max-width: 768px) {
    :root {
        --drivebit-header-pad-x: 16px;
    }

    .drivebit-app-header-inner {
        padding: 12px var(--drivebit-header-pad-x);
    }

    #drivebit-header-nav-desktop {
        display: none;
    }

    .drivebit-header-nav-mobile:not([hidden]) {
        display: flex;
    }

    .drivebit-header-nav-mobile {
        padding: 0 var(--drivebit-header-pad-x) 12px;
    }

    #root.drivebit-app-main,
    #root .drivebit-app-main {
        padding: 8px var(--drivebit-header-pad-x) 16px;
    }

    .drivebit-butter-menu {
        right: 8px;
        left: 8px;
        width: auto;
    }
}

@media (min-width: 769px) {
    .drivebit-header-nav-mobile {
        display: none !important;
    }
}
