/* PadelHub Assistant — isolated styles; remove this file to remove chatbot styling. */
.pvh-launcher,
.pvh-panel {
    font-family: Arial, Helvetica, sans-serif;
}

.pvh-launcher {
    position: fixed;
    z-index: 1500;
    right: 24px;
    bottom: 24px;
    display: grid;
    width: 60px;
    height: 60px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--navy);
    background: var(--cyan);
    box-shadow: 0 8px 24px rgba(4, 19, 38, .28);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.pvh-launcher:hover {
    transform: translateY(-2px);
    background: #40c8e5;
    box-shadow: 0 11px 28px rgba(4, 19, 38, .32);
}

.pvh-launcher:focus-visible,
.pvh-panel button:focus-visible,
.pvh-panel a:focus-visible,
.pvh-input:focus-visible {
    outline: 3px solid #29c3e2;
    outline-offset: 3px;
}

.pvh-launcher svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.pvh-panel {
    position: fixed;
    z-index: 1500;
    right: 24px;
    bottom: 96px;
    display: flex;
    width: min(380px, calc(100vw - 32px));
    height: min(620px, calc(100dvh - 120px));
    min-height: 420px;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(7, 27, 53, .1);
    border-radius: 18px;
    color: var(--navy);
    background: #fff;
    box-shadow: 0 18px 54px rgba(4, 19, 38, .28);
}

.pvh-panel[hidden],
.pvh-launcher[hidden] {
    display: none !important;
}

.pvh-header {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px 14px 20px;
    color: #fff;
    background: var(--navy);
}

.pvh-header-copy {
    min-width: 0;
}

.pvh-title {
    margin: 0;
    font-size: 1.03rem;
    font-weight: 800;
    line-height: 1.25;
}

.pvh-status {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 5px 0 0;
    color: #c6d6e7;
    font-size: .75rem;
    line-height: 1.2;
}

.pvh-status-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 0 3px rgba(24, 184, 220, .16);
}

.pvh-close {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    color: #fff;
    background: transparent;
    cursor: pointer;
    transition: color .2s ease, background .2s ease;
}

.pvh-close:hover {
    color: var(--navy);
    background: var(--cyan);
}

.pvh-close svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.pvh-messages {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 13px;
    overflow-y: auto;
    padding: 18px 16px;
    background: #f5f8fc;
    overscroll-behavior: contain;
    scrollbar-color: #b6c6d7 transparent;
    scrollbar-width: thin;
}

.pvh-message-row {
    display: flex;
    width: 100%;
}

.pvh-assistant {
    justify-content: flex-start;
}

.pvh-visitor {
    justify-content: flex-end;
}

.pvh-bubble {
    width: fit-content;
    max-width: 88%;
    padding: 11px 13px;
    border: 1px solid #e2eaf3;
    border-radius: 14px 14px 14px 4px;
    background: #fff;
    box-shadow: 0 2px 7px rgba(7, 27, 53, .04);
}

.pvh-visitor .pvh-bubble {
    border-color: var(--navy);
    border-radius: 14px 14px 4px 14px;
    color: #fff;
    background: var(--navy);
}

.pvh-message-text {
    margin: 0;
    font-size: .9rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.pvh-quick-replies {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}

.pvh-quick-reply {
    min-width: 0;
    min-height: 42px;
    padding: 8px 9px;
    border: 1px solid #cbd8e6;
    border-radius: 9px;
    color: var(--navy);
    background: #fff;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.25;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.pvh-quick-reply:hover {
    transform: translateY(-1px);
    border-color: var(--cyan);
    background: #eaf8fc;
}

.pvh-response-links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.pvh-response-link {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    padding: 7px 9px;
    border-radius: 6px;
    color: var(--navy);
    background: #dff5fb;
    font-size: .74rem;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
    transition: background .18s ease, color .18s ease;
}

.pvh-response-link:hover {
    color: #fff;
    background: #07569b;
}

.pvh-form {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #e4ebf2;
    background: #fff;
}

.pvh-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

.pvh-input {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    flex: 1 1 auto;
    padding: 10px 12px;
    border: 1px solid #cbd8e6;
    border-radius: 9px;
    color: var(--navy);
    background: #fff;
    font: inherit;
    font-size: .88rem;
}

.pvh-input::placeholder {
    color: #718198;
    opacity: 1;
}

.pvh-send {
    min-width: 58px;
    min-height: 44px;
    flex: 0 0 auto;
    padding: 9px 12px;
    border: 0;
    border-radius: 9px;
    color: var(--navy);
    background: var(--cyan);
    font-size: .78rem;
    font-weight: 800;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}

.pvh-send:hover {
    transform: translateY(-1px);
    background: #40c8e5;
}

@media (max-width: 600px) {
    .pvh-launcher {
        right: 16px;
        bottom: 16px;
        width: 56px;
        height: 56px;
    }

    .pvh-panel {
        right: 8px;
        bottom: calc(var(--pvh-visual-bottom-gap, 0px) + 16px);
        width: calc(100vw - 16px);
        height: min(620px, calc(var(--pvh-visual-height, 100dvh) * .78));
        max-height: 620px;
        min-height: 0;
        border-radius: 16px;
    }

    .pvh-panel.pvh-keyboard-open {
        bottom: calc(var(--pvh-visual-bottom-gap, 0px) + 8px);
        height: max(0px, min(620px, calc(var(--pvh-visual-height, 100dvh) - 16px)));
    }

    .pvh-header {
        flex: 0 0 auto;
        min-height: 70px;
        padding: 12px 14px 12px 16px;
    }

    .pvh-form {
        flex: 0 0 auto;
    }

    .pvh-messages {
        min-height: 0;
        flex: 1 1 auto;
        padding: 15px 12px;
        overscroll-behavior: contain;
    }

    .pvh-form {
        padding: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pvh-launcher,
    .pvh-close,
    .pvh-quick-reply,
    .pvh-response-link,
    .pvh-send {
        transition: none;
    }
}
