/* Homepage announcement of the WATCH chatbots: a speech balloon over the header video that opens
   the announcement video in a lightbox. Markup in home_page.php, behaviour in js/chatbot-promo.js. */

.chatbot-promo {
    position: absolute;
    right: 64px;
    top: 124px;
    z-index: 20;
    width: 380px;
    display: block;
    text-decoration: none;
    color: #141414;
    filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .4));
    transform: rotate(3deg);
    transition: transform .2s ease;
}
.chatbot-promo:hover,
.chatbot-promo:focus {
    color: #141414;
    text-decoration: none;
    transform: rotate(1deg) scale(1.03);
}
.chatbot-promo:focus-visible {
    outline: 3px solid #8DC63F;
    outline-offset: 6px;
}
.chatbot-promo__body {
    display: block;
    background: #ffffff;
    border-radius: 10px;
    padding: 16px 18px 18px;
}
.chatbot-promo__kop {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.chatbot-promo__nieuw {
    flex: none;
    background: #E2231A;
    color: #ffffff;
    font-weight: 900;
    font-size: 26px;
    line-height: 1.2;
    letter-spacing: 1px;
    padding: 2px 12px;
    border-radius: 4px;
}
.chatbot-promo__titel {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.1;
}
.chatbot-promo__beeld {
    position: relative;
    display: block;
    width: 344px;
    height: 194px;
    border-radius: 6px;
    overflow: hidden;
    background: #f3efe6;
}
.chatbot-promo__beeld img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.chatbot-promo__speel {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    border-radius: 50%;
    background: #E2231A;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: chatbot-promo-puls 1.8s ease-out infinite;
}
.chatbot-promo__duur {
    position: absolute;
    right: 8px;
    bottom: 8px;
    background: rgba(20, 20, 20, .8);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
}
.chatbot-promo__vraag {
    display: block;
    margin-top: 12px;
    font-size: 18px;
    font-weight: 700;
}
.chatbot-promo__punt {
    display: block;
    width: 56px;
    height: 34px;
    margin: -1px 0 0 48px;
}
@keyframes chatbot-promo-puls {
    0%   { box-shadow: 0 0 0 0 rgba(226, 35, 26, .55); }
    70%  { box-shadow: 0 0 0 18px rgba(226, 35, 26, 0); }
    100% { box-shadow: 0 0 0 0 rgba(226, 35, 26, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .chatbot-promo__speel { animation: none; }
    .chatbot-promo, .chatbot-promo:hover { transition: none; }
}

/* Tablet: smaller balloon. Phone: a compact bar below the menu, without the still. */
@media (max-width: 991px) {
    .chatbot-promo { right: 24px; top: 110px; width: 300px; }
    .chatbot-promo__beeld { width: 264px; height: 149px; }
    .chatbot-promo__nieuw { font-size: 20px; }
    .chatbot-promo__titel { font-size: 17px; }
}
@media (max-width: 767px) {
    .chatbot-promo { left: 12px; right: 12px; top: 76px; width: auto; transform: none; }
    .chatbot-promo:hover, .chatbot-promo:focus { transform: none; }
    .chatbot-promo__body { padding: 10px 12px; }
    .chatbot-promo__kop { margin-bottom: 0; }
    .chatbot-promo__beeld, .chatbot-promo__punt { display: none; }
    .chatbot-promo__vraag { margin-top: 4px; font-size: 15px; }
}

/* Lightbox */
.chatbot-lightbox[hidden] { display: none; }
.chatbot-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(10, 10, 10, .82);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.chatbot-lightbox__venster {
    width: 100%;
    max-width: min(960px, calc((100vh - 190px) * 16 / 9));
}
.chatbot-lightbox__kop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    color: #ffffff;
}
.chatbot-lightbox__titel {
    font-size: 22px;
    font-weight: 700;
}
.chatbot-lightbox__titel .chatbot-promo__nieuw {
    font-size: 18px;
    margin-right: 10px;
}
.chatbot-lightbox__sluit {
    flex: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
}
.chatbot-lightbox__sluit:hover,
.chatbot-lightbox__sluit:focus { background: rgba(255, 255, 255, .3); }
.chatbot-lightbox video {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    background: #000000;
    border-radius: 8px;
}
.chatbot-lightbox__voet {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    color: #dddddd;
    font-size: 17px;
}
.chatbot-lightbox__knop,
.chatbot-lightbox__knop:hover,
.chatbot-lightbox__knop:focus {
    background: #8DC63F;
    color: #141414;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 4px;
    text-decoration: none;
}
