/*
 * Launch tweaks (May 2026)
 *
 * Plain CSS additions for the May 4-5 launch — kept outside the SCSS
 * pipeline so they can ship without rebuilding the frontend bundle.
 *
 * Covers:
 *   - USP banner on /nl/wagen-kopen/tweedehandswagens (.usp-banner / .modal--usp)
 *   - .btn--cta-phone modifier used on the rent-page hero CTA
 *
 * If/when these are folded into the SCSS pipeline, this file can go.
 */

/* ---------------------------------------------------------- USP banner */

.usp-banner {
    background-color: #FBB500;
    overflow: hidden;
}

.usp-banner__viewport {
    overflow: hidden;
}

.usp-banner__track {
    display: flex;
    width: max-content;
    animation: usp-banner-scroll 40s linear infinite;
}

.usp-banner:hover .usp-banner__track {
    animation-play-state: paused;
}

.usp-banner__item {
    align-items: center;
    background: transparent;
    border: 0;
    color: #000;
    cursor: pointer;
    display: flex;
    flex: 0 0 auto;
    font-size: 1.4rem;
    font-weight: 600;
    gap: 0.8rem;
    justify-content: center;
    line-height: 3.2rem;
    padding: 0.5rem 1.5rem;
    transition: opacity 0.2s;
    white-space: nowrap;
    width: auto;
}

.usp-banner__item:hover {
    opacity: 0.75;
}

.usp-banner__title {
    color: #000;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 3.2rem;
    white-space: nowrap;
}

@media (min-width: 992px) {
    .usp-banner__item,
    .usp-banner__title {
        font-size: 1.6rem;
    }
}

@keyframes usp-banner-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    .usp-banner__track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
}

/* ----------------------------------------------------------- USP modal */

.modal--usp .modal-container {
    align-items: flex-end;
}

@media (min-width: 768px) {
    .modal--usp .modal-container {
        align-items: center;
    }
}

.modal--usp .modal-block {
    border-radius: 1.5rem 1.5rem 0 0;
    height: auto;
}

@media (min-width: 768px) {
    .modal--usp .modal-block {
        border-radius: 1rem;
    }
}

.modal--usp .modal__content {
    height: auto;
}

.modal--usp .modal__content-close {
    align-items: center;
    background-color: #FFF;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    height: 3rem;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 1rem;
    top: 1rem;
    width: 3rem;
    z-index: 1;
}

.modal--usp .modal__content-close svg {
    height: 1.5rem;
    width: 1.5rem;
}

.modal--usp .modal__body {
    padding: 6rem 2rem 2rem;
}

.modal--usp .modal__scroll-container {
    max-height: 80vh;
    overflow-y: auto;
}

.modal--usp .modal__item {
    align-items: baseline;
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
}

.modal--usp .modal__item:first-child { padding-top: 0; }
.modal--usp .modal__item:last-child  { padding-bottom: 0; }

.modal--usp .modal__item-content {
    flex: 1;
}

.modal--usp .modal__item-title {
    color: #000;
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0;
}

/* ---------------------------------------------------- Rent phone CTA  */

.btn--cta-phone {
    --btn-icon-min-width: 1.4rem;
    --btn-icon-max-width: 1.4rem;
}
