.alvi-consent [hidden],
#cookie-block:has(#cookie-button) {
    display: none !important;
}

.alvi-cookie-banner,
.alvi-cookie-reopen {
    position: fixed;
    z-index: 1020;
    left: max(12px, env(safe-area-inset-left));
    bottom: max(12px, env(safe-area-inset-bottom));
    color: #172128;
    background: #fff;
    border: 1px solid #afbec6;
    border-radius: 12px;
    box-shadow: 0 3px 20px #14263326;
}

.alvi-cookie-banner {
    box-sizing: border-box;
    width: min(420px, calc(100% - 24px));
    max-height: min(75vh, 570px);
    padding: 18px;
    overflow: auto;
    font: 400 14px/1.45 system-ui, sans-serif;
    overflow-wrap: anywhere;
}

.alvi-cookie-banner h2 {
    margin: 0 0 8px;
    color: inherit;
    font: 650 18px/1.25 system-ui, sans-serif;
}

.alvi-cookie-banner p {
    margin: 0 0 10px;
    white-space: pre-line;
}

.alvi-cookie-actions {
    display: flex;
    gap: 8px;
}

.alvi-cookie-actions button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid #006175;
    border-radius: 7px;
    background: #006175;
    color: #fff;
    font: 600 14px/1.25 system-ui, sans-serif;
    cursor: pointer;
}

.alvi-cookie-actions button:hover {
    background: #004e60;
}

.alvi-cookie-actions button:disabled {
    opacity: .7;
    cursor: wait;
}

.alvi-cookie-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 12px;
    margin-top: 9px;
}

.alvi-cookie-links a {
    color: #005567;
    text-decoration: underline;
    text-underline-offset: .15em;
}

.alvi-cookie-reopen {
    display: inline-grid;
    width: 44px;
    height: 44px;
    box-sizing: border-box;
    padding: 0;
    place-items: center;
    border-radius: 50%;
    color: #005567;
    cursor: pointer;
}

.alvi-cookie-reopen:hover {
    background: #edf2f4;
}

#alvi-cookie-settings {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #d5dfe3;
}

#alvi-cookie-settings label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 31px;
    font-weight: 400;
}

#alvi-cookie-settings input {
    position: static;
    width: 18px;
    height: 18px;
    margin: 0;
    appearance: auto;
    accent-color: #006175;
}

#alvi-cookie-settings .alvi-cookie-actions {
    margin-top: 8px;
}

.alvi-consent :focus-visible,
.alvi-video-placeholder:focus-visible {
    outline: 2px solid #007388;
    outline-offset: 3px;
}

.alvi-consent [data-alvi-error],
.alvi-captcha-error {
    margin: 8px 0 0;
    color: #8d2923;
}

.alvi-video-placeholder {
    display: inline-block;
    padding: 12px 16px;
    border-radius: 6px;
    background: #edf2f4;
    color: #005567;
    text-decoration: underline;
}

/* Requested services stay local until the visitor activates them. */
.alvi-video-preview {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 200px;
    overflow: hidden;
    background: #182b44;
    color: #fff;
}
.alvi-video-preview > button {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    border: 0;
    background: linear-gradient(135deg, #193e64, #172132);
    color: #fff;
    font: 400 14px/1.4 system-ui, sans-serif;
    text-align: center;
    cursor: pointer;
}
.alvi-video-preview > button > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}
.alvi-video-preview > button > span { position: relative; }
.alvi-video-play {
    display: grid;
    place-items: center;
    width: 68px;
    height: 48px;
    border-radius: 12px;
    background: #f00;
    color: #fff;
    box-shadow: 0 2px 10px #0003;
    transition: transform 160ms ease;
}
.alvi-video-play svg { width: 24px; height: 24px; fill: currentColor; }
.alvi-video-preview > button:hover .alvi-video-play { transform: scale(1.08); }
.alvi-video-title { font-weight: 600; }
.alvi-video-action { font-size: 12px; opacity: .85; }
.alvi-video-preview > iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.embed-responsive > .alvi-video-preview,
.video-responsive > .alvi-video-preview,
.videoWrapper > .alvi-video-preview { position: absolute; inset: 0; height: 100%; }
.alvi-service-chat-shell {
    position: fixed;
    width: 100px;
    height: 100px;
    pointer-events: none;
}
.alvi-service-chat-launcher {
    position: relative;
    top: 8px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    box-shadow: none;
    font-size: 0;
    line-height: 0;
    pointer-events: auto;
    cursor: pointer;
}
.alvi-service-chat-face {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    border-radius: 18px;
    background-color: #fff;
    transition: transform 160ms ease;
}
.alvi-service-chat-face img { width: 50px; height: 50px; margin: 0; padding: 0; border: 0; }
.alvi-service-chat-launcher:hover { background: transparent; }
.alvi-service-chat-launcher:hover .alvi-service-chat-face { transform: scale(1.05); }
.alvi-service-chat-launcher:disabled { opacity: .65; cursor: progress; }
.alvi-service-chat-status {
    position: fixed;
    z-index: 1010;
    right: 20px;
    bottom: 86px;
    max-width: calc(100vw - 40px);
    padding: 10px 14px;
    border: 1px solid #d5dfe3;
    border-radius: 8px;
    background: #fff;
    color: #172128;
    box-shadow: 0 3px 20px #14263326;
    font: 400 13px/1.4 system-ui, sans-serif;
}
.alvi-service-chat-shell[hidden], .alvi-service-chat-launcher[hidden], .alvi-service-chat-status[hidden] { display: none !important; }
.alvi-video-preview > button:focus-visible, .alvi-service-chat-launcher:focus-visible { outline: 3px solid #007388; outline-offset: -4px; }
@media (max-width: 749px) { .alvi-service-chat-shell { width: 120px; height: 120px; } }
@media (prefers-reduced-motion: reduce) { .alvi-video-play, .alvi-service-chat-face { transition: none; } }
