﻿/* =========================================================
   OFFER BANNER (an offer the store pushes): rises slowly from the bottom to the middle of the screen, stays 30 seconds,
   leaves fast to the left, and comes again 10 seconds later. The picture is shown whole; the name, price and the Book
   button are in a bar along its bottom, so nothing covers the picture.
   ========================================================= */
.offer-banner {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    width: min(1120px, 96vw);
    max-height: 94vh;
    border-radius: 22px;
    overflow: hidden;
    color: #fff;
    background: #1b1410;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
    transform: translate(-50%, 60vh);              /* below the screen, where it starts */
    pointer-events: none;
}
.offer-banner.offer-banner-show {
    pointer-events: auto;
    animation: offerRise 2.8s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;      /* slowly, from the bottom to the middle */
}
.offer-banner.offer-banner-leave {
    pointer-events: none;
    animation: offerLeft 0.45s cubic-bezier(0.55, 0, 1, 0.45) forwards;       /* fast, off the screen to the left */
}
@keyframes offerRise {
    from { transform: translate(-50%, 60vh); }
    to { transform: translate(-50%, -50%); }
}
@keyframes offerLeft {
    from { transform: translate(-50%, -50%); }
    to { transform: translate(calc(-50vw - 100%), -50%); }
}
.offer-banner-picture {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(94vh - 84px);
    object-fit: cover;
    min-height: 0;
}
.offer-banner-fallback {
    padding: 36px 44px 22px;
    background: #8b2f26;
}
.offer-banner-label {
    display: inline-block;
    margin-bottom: 6px;
    padding: 3px 14px;
    border-radius: 14px;
    background: #f4a30b;
    color: #000;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.offer-banner-fallback h3 {
    margin: 6px 0;
    font-family: 'Oswald', sans-serif;
    font-size: 46px;
    line-height: 1.08;
}
.offer-banner-fallback p { margin: 0; font-size: 17px; line-height: 1.4; }
.offer-banner-bar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 24px;
    background: #1b1410;
    border-top: 2px solid #f4a30b;
}
.offer-banner-info { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; min-width: 0; }
.offer-banner-info strong { font-family: 'Oswald', sans-serif; font-size: 28px; font-weight: 500; line-height: 1.1; }
.offer-banner-price { font-family: 'Oswald', sans-serif; font-size: 26px; font-weight: 600; color: #ffd166; }
.offer-banner-price small { font-size: 15px; font-weight: 400; color: #fff; }
.offer-banner-book {
    flex: 0 0 auto;
    min-width: 160px;
    padding: 12px 34px;
    border-radius: 12px;
    background: #f4a30b;
    color: #000;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.offer-banner-book:hover { background: #ffb92e; color: #000; text-decoration: none; }
.offer-banner-close {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
@media (max-width: 700px) {
    .offer-banner-bar { flex-wrap: wrap; padding: 10px 14px; gap: 10px; }
    .offer-banner-info strong { font-size: 22px; }
    .offer-banner-price { font-size: 22px; }
    .offer-banner-book { width: 100%; }
    .offer-banner-fallback h3 { font-size: 30px; }
}
