.tabbed-notification {
    position: fixed;
    bottom: 0;
    left: 1.25rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    width: 22rem;
    max-width: calc(100vw - 2.5rem);
    font-family: var(--font-graphik-regular), sans-serif;
}

/* Must sit above the third-party bottom widget (z-index: 999998) while open. */
.tabbed-notification.is-open {
    z-index: 999999;
}

.tabbed-notification__tab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    margin: 0;
    padding: 0.875rem 1.25rem;
    border: 0;
    border-radius: 0.5rem 0.5rem 0 0;
    background: var(--dark-blue);
    color: var(--white);
    font: inherit;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
}

.tabbed-notification__title {
    flex: 1 1 auto;
    min-width: 0;
    font-family: var(--font-graphikbold), sans-serif;
    font-size: 0.875rem;
    text-wrap: balance;
}

.tabbed-notification__tab:hover,
.tabbed-notification__tab:focus {
    background: var(--primary);
}

.tabbed-notification__tab:focus {
    outline: 2px solid var(--white);
    outline-offset: -4px;
}

.tabbed-notification__icon {
    flex: 0 0 auto;
    font-size: 0.875rem;
    color: inherit;
    /* icon-dropdown points down by default; flip it up for the closed state. */
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

/* Chevron points down when the panel is open to indicate it can be closed. */
.tabbed-notification__tab[aria-expanded="true"] .tabbed-notification__icon {
    transform: rotate(0deg);
}

@media (prefers-reduced-motion: reduce) {
    .tabbed-notification__icon {
        transition: none;
    }
}

.tabbed-notification__panel {
    max-height: 18rem;
    overflow: auto;
    background: var(--white);
    color: var(--medium-blue);
    border: 1px solid var(--dark-blue);
    border-bottom: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(6, 42, 68, 0.35) var(--light-blue);
}

.tabbed-notification__panel::-webkit-scrollbar {
    width: 0.375rem;
}

.tabbed-notification__panel::-webkit-scrollbar-track {
    background: var(--light-blue);
}

.tabbed-notification__panel::-webkit-scrollbar-thumb {
    background: rgba(6, 42, 68, 0.35);
    border-radius: 0.1875rem;
}

.tabbed-notification__panel::-webkit-scrollbar-thumb:hover {
    background: rgba(6, 42, 68, 0.5);
}

.tabbed-notification__message {
    padding: 1rem 1.25rem 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.3;
}

.tabbed-notification__message p,
.tabbed-notification__message ul,
.tabbed-notification__message ol {
    margin: 0 0 0.9375rem;
    font-size: 0.9375rem;
    line-height: 1.3;
}

.tabbed-notification__message > :first-child {
    margin-top: 0;
}

.tabbed-notification__message > :last-child {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .tabbed-notification {
        left: 1.375rem;
        right: 1.375rem;
        width: auto;
        max-width: none;
    }
}
