/* Public inquiry extras on top of /dashboard/chat-widget.css */

.adbb-chat-root.adbb-inq-public {
    z-index: 99970;
}

.adbb-inq-teaser {
    pointer-events: auto;
    display: none;
    position: absolute;
    right: 0;
    bottom: 76px;
    width: min(280px, calc(100vw - 24px));
    padding: 12px 38px 12px 14px;
    background: #1D1D1B;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 18px;
    border-bottom-right-radius: 6px;
    box-shadow: 0 10px 28px rgba(29, 29, 27, 0.28);
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
    cursor: pointer;
}

.adbb-chat-root.adbb-inq-public.is-min.is-tease .adbb-inq-teaser {
    display: block;
    animation: adbb-inq-tease-in .22s ease;
}

.adbb-inq-teaser-text {
    display: block;
    white-space: normal;
    overflow-wrap: anywhere;
}

.adbb-inq-teaser-dismiss {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.adbb-inq-teaser-dismiss:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

@keyframes adbb-inq-tease-in {
    from { transform: translateY(8px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.adbb-inq-thread-body {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.adbb-inq-thread-body .adbb-chat-messages {
    flex: 1;
    min-height: 0;
    scroll-behavior: auto;
    overscroll-behavior: contain;
}

.adbb-chat-root.adbb-inq-public.is-open .adbb-chat-panel,
.adbb-chat-root.adbb-inq-public .adbb-inq-thread-body,
.adbb-chat-root.adbb-inq-public .adbb-inq-choices {
    overscroll-behavior: contain;
}

.adbb-inq-jump {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    padding: 0;
    background: #1D1D1B;
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(29, 29, 27, 0.22);
    cursor: pointer;
}

.adbb-inq-jump[hidden] {
    display: none;
}

.adbb-inq-jump:hover {
    background: #333;
}

.adbb-inq-choices {
    display: grid;
    gap: 8px;
}

.adbb-chat-root.adbb-inq-public .adbb-chat-composer.adbb-inq-choices {
    flex-shrink: 1;
    min-height: 0;
    max-height: min(420px, 58%);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.adbb-inq-fit {
    min-height: 0;
}

.adbb-inq-fit-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 4px;
}

.adbb-inq-fit-dates,
.adbb-inq-fit-times {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    max-height: 168px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-right: 2px;
}

.adbb-inq-fit-times {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: 148px;
}

.adbb-inq-fit .date-btn,
.adbb-inq-fit .time-btn {
    border: 1px solid #d8d8d6;
    background: #fff;
    border-radius: 10px;
    padding: 8px 6px;
    font: inherit;
    font-size: 12px;
    line-height: 1.25;
    cursor: pointer;
    color: #1D1D1B;
}

.adbb-inq-fit .date-btn.bg-secondary,
.adbb-inq-fit .time-btn.bg-secondary {
    background: #1D1D1B;
    color: #fff;
    border-color: #1D1D1B;
}

.adbb-inq-fit-status.hidden {
    display: none;
}

.adbb-inq-fit-status:not(.hidden) {
    font-size: 13px;
    line-height: 1.4;
    padding: 10px 12px;
    border-radius: 10px;
}

.adbb-inq-choice {
    width: 100%;
    border: 1px solid #d8d8d6;
    background: #fff;
    color: #1D1D1B;
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
}

.adbb-inq-choice:hover {
    border-color: #C8A5AD;
    box-shadow: 0 0 0 3px rgba(200, 165, 173, 0.25);
}

.adbb-inq-choice.is-primary {
    background: #C8A5AD;
    color: #fff;
    border-color: #C8A5AD;
}

.adbb-inq-choice.is-dark {
    background: #1D1D1B;
    color: #fff;
    border-color: #1D1D1B;
}

.adbb-inq-choice.is-quiet {
    color: #707070;
    font-weight: 500;
}

.adbb-inq-input-row {
    display: flex;
    gap: 8px;
}

.adbb-inq-field {
    flex: 1;
    min-width: 0;
    width: 100%;
    border: 1px solid #d8d8d6;
    border-radius: 10px;
    padding: 8px 10px;
    font: inherit;
    color: #1D1D1B;
    outline: none;
}

.adbb-inq-field:focus {
    border-color: #C8A5AD;
    box-shadow: 0 0 0 3px rgba(200, 165, 173, 0.25);
}

.adbb-inq-send {
    border: 0;
    background: #C8A5AD;
    color: #fff;
    border-radius: 10px;
    padding: 0 16px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
}

.adbb-inq-hint {
    font-size: 11px;
    color: #8a8a87;
    text-align: center;
}

.adbb-inq-ended {
    font-size: 13px;
    color: #707070;
    text-align: center;
    padding: 4px 0;
}

.adbb-inq-typing {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.adbb-inq-typing i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9a9a97;
    animation: adbb-inq-bounce 1s infinite ease-in-out;
}

.adbb-inq-typing i:nth-child(2) { animation-delay: .12s; }
.adbb-inq-typing i:nth-child(3) { animation-delay: .24s; }

@keyframes adbb-inq-bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-4px); }
}

@media (max-width: 640px) {
    .adbb-chat-root.adbb-inq-public.is-open {
        inset: 0;
        right: 0;
        bottom: 0;
        left: 0;
        top: 0;
    }

    .adbb-chat-root.adbb-inq-public.is-open .adbb-chat-panel {
        width: 100%;
        height: 100%;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .adbb-chat-root.adbb-inq-public .adbb-chat-composer.adbb-inq-choices {
        max-height: min(62vh, 520px);
    }

    body.adbb-inq-open {
        overflow: hidden;
    }
}

