body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.kb-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1050;
    background: #fff;
}

.kb-header__back-btn {
    background: #1f2937;
    color: #fff !important;
    border: 1px solid #1f2937;
}

.kb-header__back-btn:hover {
    background: #111827;
    border-color: #111827;
    color: #fff !important;
}

.kb-header__back-btn:focus-visible {
    outline: 2px solid #1f2937;
    outline-offset: 2px;
}

.page-kb .kb-buyer-fab,
.page-kb .back-to-top {
    opacity: 0.55 !important;
    transition: opacity .15s ease, filter .15s ease, transform .15s ease !important;
}

.page-kb .kb-buyer-fab:hover,
.page-kb .back-to-top:hover {
    opacity: 0.9 !important;
    filter: brightness(1) !important;
}

.page-kb .chatwoot-consent-launcher,
.page-kb .woot-widget-bubble {
    opacity: 0.55 !important;
    transition: opacity .15s ease, filter .15s ease, transform .15s ease !important;
}

.page-kb .chatwoot-consent-launcher:hover,
.page-kb .woot-widget-bubble:hover {
    opacity: 0.9 !important;
    filter: brightness(1) !important;
}

.kb-breadcrumbs {
    margin-bottom: 1rem !important;
    padding: 0.6rem 0.8rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.kb-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.kb-breadcrumbs li {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.kb-breadcrumbs li > a,
.kb-breadcrumbs li > span {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    line-height: 1.35;
    white-space: nowrap;
}

.kb-breadcrumbs li > a {
    color: #4b5563 !important;
}

.kb-breadcrumbs li > a:hover {
    color: #e15c02 !important;
    background: #fff4ec;
}

.kb-breadcrumbs li > span.font-medium {
    color: #9a3f00 !important;
    background: #fff4ec;
}

.kb-breadcrumbs li > span.mx-2 {
    margin: 0 0.08rem !important;
    font-size: 0;
    color: #cbd5e1 !important;
    user-select: none;
}

.kb-breadcrumbs li > span.mx-2::before {
    content: '›';
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
}

.kb-header__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    text-decoration: none;
}

.kb-header__brand-logo {
    height: 34px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.kb-header__brand-label {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
}

/* ========================================
   KB Header (Mobile)
   ======================================== */

@media (max-width: 768px) {
    .kb-header__row {
        flex-wrap: wrap;
        height: auto !important;
        padding: 10px 0 12px;
        gap: 10px;
        align-items: center;
    }

    .kb-header__logo {
        min-width: 160px;
    }

    .kb-header__brand-logo {
        height: 28px;
        max-width: 150px;
    }

    .kb-header__search {
        order: 3;
        flex: 1 0 100%;
        max-width: none !important;
        margin: 0 !important; /* override mx-8 */
    }

    .kb-header__actions {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 10px;
    }

    .kb-header__actions > * {
        margin-left: 0 !important; /* override space-x-4 */
    }

    .kb-header__pdf {
        padding: 10px 12px !important;
    }

    .kb-header__pdf-label {
        display: none;
    }

    .kb-breadcrumbs {
        margin-bottom: 12px !important;
        padding: 0.5rem 0.55rem;
        border-radius: 10px;
    }

    .kb-breadcrumbs ol {
        flex-wrap: wrap;
        overflow: visible;
        white-space: normal;
        padding-bottom: 0;
        row-gap: 0.25rem;
    }

    .kb-breadcrumbs li > a,
    .kb-breadcrumbs li > span {
        padding: 0.18rem 0.4rem;
        border-radius: 7px;
        font-size: 0.86rem;
    }
}

/* Prose styling for markdown content */
.prose {
    max-width: 65ch;
    color: #374151;
    font-size: 1rem;
    line-height: 1.75;
}

.prose h1 {
    color: #111827;
    font-weight: 700;
    font-size: 2.25rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    border-left: 4px solid #e15c02;
    padding-left: 1rem;
}

.kb-doc-card {
    position: relative;
}

.kb-page-pdf-action {
    position: absolute;
    top: 1.4rem;
    right: 1.6rem;
    z-index: 2;
}

.kb-page-pdf-btn {
    white-space: nowrap;
}

.prose h2 {
    color: #111827;
    font-weight: 600;
    font-size: 1.875rem;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    line-height: 1.3;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.prose h3 {
    color: #111827;
    font-weight: 600;
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.prose h4 {
    color: #111827;
    font-weight: 600;
    font-size: 1.25rem;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.prose p {
    margin-bottom: 1.25rem;
}

/* SEO intro on KB index should use full card width, not the default prose line-length cap */
.prose.kb-seo-intro {
    max-width: none;
}

.prose a {
    color: #e15c02;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.prose a:hover {
    color: #c44f02;
    text-decoration: underline;
}

.prose code {
    background-color: #f3f4f6;
    color: #e15c02;
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-weight: 500;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.prose pre {
    background-color: #111827;
    color: #e5e7eb;
    padding: 1.25rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.kb-code-block {
    position: relative;
}

.kb-code-pre {
    padding-top: 2.75rem;
}

.kb-copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem;
    border-radius: 0.375rem;
    border: 1px solid #1f2937;
    background: rgba(17, 24, 39, 0.9);
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s ease;
}

.kb-copy-btn:hover {
    background: rgba(31, 41, 55, 0.95);
    color: #60a5fa;
}

.kb-copy-btn svg {
    width: 16px;
    height: 16px;
}

.prose pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
    font-size: 0.875rem;
    overflow-wrap: normal;
    word-break: normal;
}

/* Search results: long paths should never overflow on mobile */
.kb-search-result-url {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.prose ul,
.prose ol {
    margin: 1.25rem 0;
    padding-left: 1.75rem;
}

.prose li {
    margin: 0.5rem 0;
}

.prose blockquote {
    border-left: 4px solid #e15c02;
    padding-left: 1rem;
    font-style: italic;
    color: #6b7280;
    margin: 1.5rem 0;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.prose thead {
    background-color: #f9fafb;
}

.prose th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #111827;
    border-bottom: 2px solid #e5e7eb;
}

.prose td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.prose tr:hover {
    background-color: #f9fafb;
}

.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin: 1.5rem 0;
}

.prose hr {
    border: none;
    border-top: 2px solid #e5e7eb;
    margin: 2.5rem 0;
}

/* Navigation styling */
.nav-link {
    display: block;
    padding: 0.5rem 1rem;
    color: #4b5563;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.nav-link:hover {
    background-color: #fef3e7;
    color: #e15c02;
}

.nav-link.active {
    background-color: #fef3e7;
    color: #e15c02;
    font-weight: 600;
    border-left: 3px solid #e15c02;
}

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #9ca3af;
    padding: 0.5rem 1rem;
    letter-spacing: 0.05em;
}

/* ========================================
   KB Mobile Layout
   ======================================== */

.kb-mobile-toolbar,
.kb-mobile-nav-overlay,
.kb-mobile-nav-drawer {
    display: none;
}

@media (max-width: 1024px) {
    .kb-sidebar {
        display: none !important;
    }

    .kb-mobile-toolbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 14px;
    }

    .kb-mobile-toolbar__btn {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        border-radius: 10px;
        border: 1px solid #e5e7eb;
        background: #ffffff;
        color: #111827;
        padding: 10px 12px;
        font-weight: 700;
        font-size: 14px;
        cursor: pointer;
        box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    }

    .kb-mobile-toolbar__btn:hover {
        border-color: #d1d5db;
    }

    .kb-mobile-toolbar__btn:focus-visible {
        outline: 3px solid rgba(225, 92, 2, 0.25);
        outline-offset: 2px;
    }

    .kb-mobile-toolbar__icon {
        width: 18px;
        height: 18px;
        color: #e15c02;
        display: block;
    }

    .kb-mobile-toolbar__back {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        border-radius: 10px;
        border: 1px solid #e5e7eb;
        background: #111827;
        color: #ffffff;
        padding: 10px 12px;
        font-weight: 700;
        font-size: 14px;
        white-space: nowrap;
        box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    }

    .kb-mobile-toolbar__back:hover {
        filter: brightness(0.96);
    }

    .kb-mobile-nav-overlay,
    .kb-mobile-nav-drawer {
        display: block;
    }

    .kb-mobile-nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(17, 24, 39, 0.55);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.2s ease, visibility 0.2s ease;
        z-index: 3000;
    }

    .kb-mobile-nav-drawer {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: min(92vw, 360px);
        background: #ffffff;
        transform: translateX(-102%);
        transition: transform 0.25s ease;
        z-index: 3001;
        box-shadow: 12px 0 30px rgba(0,0,0,0.18);
        display: flex;
        flex-direction: column;
    }

    .kb-mobile-nav-drawer__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 14px;
        border-bottom: 1px solid #e5e7eb;
    }

    .kb-mobile-nav-drawer__title {
        font-weight: 800;
        color: #111827;
        font-size: 14px;
        letter-spacing: 0.02em;
        text-transform: uppercase;
    }

    .kb-mobile-nav-drawer__close {
        appearance: none;
        -webkit-appearance: none;
        border: none;
        background: transparent;
        font-size: 26px;
        line-height: 1;
        color: #6b7280;
        cursor: pointer;
        padding: 0 6px;
    }

    .kb-mobile-nav-drawer__close:hover {
        color: #374151;
    }

    .kb-mobile-nav-drawer__body {
        padding: 12px 10px;
        overflow: auto;
    }

    .kb-mobile-nav-drawer__toplinks {
        display: grid;
        gap: 10px;
        margin: 2px 6px 12px 6px;
    }

    .kb-mobile-nav-drawer__toplink {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        border-radius: 10px;
        border: 1px solid #e5e7eb;
        background: #ffffff;
        color: #111827;
        padding: 10px 12px;
        font-weight: 800;
        font-size: 14px;
    }

    .kb-mobile-nav-drawer__toplink:hover {
        background: #f9fafb;
    }

    body.kb-mobile-nav-open .kb-mobile-nav-overlay {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    body.kb-mobile-nav-open .kb-mobile-nav-drawer {
        transform: translateX(0);
    }

    /* Reduce card padding + typography scale for narrow screens */
    .kb-doc-card {
        padding: 18px !important;
    }

    .prose h1 {
        font-size: 1.85rem;
    }

    .kb-page-pdf-action {
        position: static;
        margin-bottom: 1rem;
        display: flex;
        justify-content: flex-start;
    }

    .kb-page-pdf-btn {
        white-space: normal;
    }

    .prose h2 {
        font-size: 1.4rem;
    }

    .prose h3 {
        font-size: 1.2rem;
    }

    .prose pre {
        padding: 12px 12px;
    }

    /* Keep buyer FAB from fighting the nav drawer */
    body.kb-mobile-nav-open .kb-buyer-fab {
        display: none !important;
    }
}

/* ========================================
   Lite Buyer Widget (KB)
   ======================================== */

.kb-buyer-fab,
.kb-buyer-drawer,
.kb-buyer-drawer-overlay {
    display: none;
}

.kb-buyer-fab {
    position: fixed;
    right: auto;
    left: calc(24px + env(safe-area-inset-left, 0px));
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    z-index: 2147483647;
    background: #e15c02;
    color: #ffffff;
    appearance: none;
    -webkit-appearance: none;
    border: none;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    height: 48px;
    width: 48px;
    transition: transform 0.15s ease, filter 0.15s ease, opacity 0.15s ease;
    opacity: 0.55;
    line-height: 0;
    font-size: 0;
}

.kb-buyer-fab:hover {
    filter: brightness(1);
    opacity: 0.9;
}

.kb-buyer-fab:active {
    transform: scale(0.97);
}

.kb-buyer-fab:focus-visible {
    outline: 3px solid rgba(225, 92, 2, 0.35);
    outline-offset: 3px;
}

.kb-buyer-fab__icon {
    width: 24px;
    height: 24px;
    display: block;
}

.kb-buyer-fab__label {
    display: none;
}

.back-to-top {
    opacity: 0.55;
    transition: opacity 0.15s ease, filter 0.15s ease, transform 0.15s ease;
}

.back-to-top:hover {
    opacity: 0.9;
    filter: brightness(1);
}

.back-to-top:active {
    transform: scale(0.97);
}

.chatwoot-consent-launcher {
    position: fixed;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 9999px;
    background: var(--primary, #e15c02);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    z-index: 1201;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    opacity: 0.55;
    transition: opacity 0.15s ease, filter 0.15s ease, transform 0.15s ease;
}

.chatwoot-consent-launcher:hover {
    opacity: 0.9;
    filter: brightness(1);
}

.chatwoot-consent-launcher:active {
    transform: scale(0.97);
}

.chatwoot-consent-launcher:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.chatwoot-consent-launcher--right {
    right: calc(24px + env(safe-area-inset-right, 0px));
}

.chatwoot-consent-launcher--left {
    left: calc(24px + env(safe-area-inset-left, 0px));
}

.chatwoot-consent-launcher.is-hidden {
    display: none !important;
}

.chatwoot-consent-launcher .chatwoot-icon {
    width: 20px;
    height: 20px;
}

.chatwoot-consent-launcher .chatwoot-icon--close {
    display: none;
}

.chatwoot-consent-launcher.is-chat-open .chatwoot-icon--open {
    display: none;
}

.chatwoot-consent-launcher.is-chat-open .chatwoot-icon--close {
    display: block;
}

.woot-widget-bubble {
    width: 48px !important;
    height: 48px !important;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    opacity: 0.55 !important;
    transition: opacity 0.15s ease, filter 0.15s ease, transform 0.15s ease !important;
}

.woot-widget-bubble:hover {
    opacity: 0.9 !important;
    filter: brightness(1) !important;
}

.woot-widget-bubble svg {
    width: 20px !important;
    height: 20px !important;
    margin: 14px !important;
}

.woot-widget-bubble.woot-elements--right {
    right: calc(24px + env(safe-area-inset-right, 0px)) !important;
}

.woot-widget-bubble.woot-elements--left {
    left: calc(24px + env(safe-area-inset-left, 0px)) !important;
}

.woot-widget-bubble.woot--close svg {
    opacity: 0 !important;
}

.woot-widget-bubble.woot--close::before,
.woot-widget-bubble.woot--close::after {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 2px !important;
    height: 16px !important;
    border-radius: 2px !important;
    background: #fff !important;
    transform-origin: center !important;
    z-index: 2 !important;
}

.woot-widget-bubble.woot--close::before {
    transform: translate(-50%, -50%) rotate(45deg) !important;
}

.woot-widget-bubble.woot--close::after {
    transform: translate(-50%, -50%) rotate(-45deg) !important;
}

.woot-widget-holder.woot-elements--right {
    right: 0 !important;
    left: auto !important;
}

.woot-widget-holder.woot-elements--left {
    left: 0 !important;
    right: auto !important;
}

.woot-widget-holder.has-unread-view {
    bottom: 72px !important;
}

@media only screen and (min-width: 667px) {
    .woot-widget-holder {
        bottom: 72px !important;
    }
}

.kb-buyer-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.55);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 2000;
}

.kb-buyer-drawer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    border-radius: 16px 16px 0 0;
    transform: translateY(102%);
    transition: transform 0.25s ease;
    z-index: 2001;
    max-height: calc(100vh - 10px - env(safe-area-inset-top, 0px));
    overflow: auto;
    box-shadow: 0 -18px 38px rgba(0, 0, 0, 0.2);
}

.kb-buyer-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.kb-buyer-drawer__title {
    font-size: 15px;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
    padding-right: 12px;
}

.kb-buyer-drawer__close {
    background: transparent;
    border: none;
    color: #6b7280;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0 6px;
}

.kb-buyer-drawer__close:hover {
    color: #374151;
}

.kb-buyer-drawer__body {
    padding: 16px;
}

.kb-buyer-drawer__hint {
    margin: 0 0 14px 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.55;
}

.kb-buyer-drawer__actions {
    display: grid;
    gap: 10px;
}

.kb-buyer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
    border-radius: 10px;
    padding: 12px 14px;
    border: 1px solid transparent;
    transition: filter 0.15s ease, transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.kb-buyer-btn:active {
    transform: translateY(1px);
}

.kb-buyer-btn--primary {
    background: #e15c02;
    color: #ffffff;
}

.kb-buyer-btn--primary:hover {
    filter: brightness(0.97);
}

.kb-buyer-btn--secondary {
    background: #111827;
    color: #ffffff;
}

.kb-buyer-btn--secondary:hover {
    filter: brightness(0.96);
}

.kb-buyer-btn--ghost {
    background: #ffffff;
    color: #374151;
    border-color: #e5e7eb;
}

.kb-buyer-btn--ghost:hover {
    background: #f9fafb;
}

/* Show FAB on KB pages that include it */
.kb-buyer-fab {
    display: inline-flex;
}

.kb-buyer-drawer,
.kb-buyer-drawer-overlay {
    display: block;
}

body.kb-buyer-open .kb-buyer-drawer {
    transform: translateY(0);
}

body.kb-buyer-open .kb-buyer-drawer-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.kb-buyer-open .kb-buyer-fab {
    display: none;
}

@media (max-width: 768px) {
    .chatwoot-consent-launcher {
        width: 40px;
        height: 40px;
        bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    }

    .chatwoot-consent-launcher--right {
        right: calc(20px + env(safe-area-inset-right, 0px));
    }

    .chatwoot-consent-launcher--left {
        left: calc(20px + env(safe-area-inset-left, 0px));
    }

    .chatwoot-consent-launcher .chatwoot-icon {
        width: 18px;
        height: 18px;
    }

    .woot-widget-bubble {
        bottom: calc(20px + env(safe-area-inset-bottom, 0px)) !important;
        width: 40px !important;
        height: 40px !important;
    }

    .woot-widget-bubble svg {
        width: 18px !important;
        height: 18px !important;
        margin: 11px !important;
    }

    .woot-widget-bubble.woot-elements--right {
        right: calc(20px + env(safe-area-inset-right, 0px)) !important;
    }

    .woot-widget-bubble.woot-elements--left {
        left: calc(20px + env(safe-area-inset-left, 0px)) !important;
    }

    .woot-widget-bubble.woot--close::before,
    .woot-widget-bubble.woot--close::after {
        height: 14px !important;
    }

    .woot-widget-holder.has-unread-view {
        bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .back-to-top {
        bottom: calc(20px + env(safe-area-inset-bottom, 0px));
        width: 40px;
        height: 40px;
    }

    .back-to-top svg {
        width: 20px;
        height: 20px;
    }

    /* Keep the CTA above mobile browser UI */
    .kb-buyer-fab {
        right: auto;
        left: calc(20px + env(safe-area-inset-left, 0px));
        bottom: calc(20px + env(safe-area-inset-bottom, 0px));
        height: 40px;
        width: 40px;
    }
    .kb-buyer-fab__icon {
        width: 20px;
        height: 20px;
    }
}

@media (min-width: 900px) {
    /* Desktop: compact popover-like drawer */
    .kb-buyer-drawer {
        left: calc(24px + env(safe-area-inset-left, 0px));
        right: auto;
        bottom: calc(24px + env(safe-area-inset-bottom, 0px));
        width: 420px;
        border-radius: 16px;
        transform: translateY(10px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    }
    body.kb-buyer-open .kb-buyer-drawer {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}
