/**
 * Standalone quick-links header for Sale AI Assistant.
 * This block is a separate sibling above the original chat widget.
 * It does not style or modify any existing joor-ai-* element.
 */
.saa-chat-top-header,
.saa-chat-top-header * {
    box-sizing: border-box;
}

.saa-chat-top-header {
    width: min(500px, 100%);
    height: 80px;
    min-height: 80px;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    direction: rtl;
    font-size: 0;
}

.saa-chat-top-header__inner {
    width: 100%;
    height: 80px;
    padding: 15px 20px;
    margin: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    direction: rtl;
    overflow: hidden;
}

.saa-chat-top-header__button {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    flex: 0 0 50px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
}

.saa-chat-top-header__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    height: fit-content;
    max-width: 250px;
    max-height: 50px;
    min-width: 0;
    min-height: 0;
    flex: 0 1 auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
}

.saa-chat-top-header__buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    direction: ltr;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.saa-chat-top-header__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: opacity .15s ease, transform .15s ease;
}

.saa-chat-top-header__button:hover,
.saa-chat-top-header__button:focus-visible {
    opacity: .82;
    transform: translateY(-1px);
    outline: none;
}

.saa-chat-top-header__logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 50px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    object-fit: contain;
    object-position: center;
    background: transparent;
}

.saa-chat-top-header__button img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    object-fit: contain;
    object-position: center;
    background: transparent;
}

@media (max-width: 500px) {
    .saa-chat-top-header {
        width: 100%;
    }

    .saa-chat-top-header__inner {
        padding-right: 14px;
        padding-left: 14px;
        gap: 8px;
    }

    .saa-chat-top-header__buttons {
        gap: 2px;
    }
}
