body.profifleet-popup-is-open {
    overflow: hidden;
}

.profifleet-popup[hidden] {
    display: none !important;
}

.profifleet-popup {
    position: fixed;
    z-index: 2147483000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding: 16px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(4, 7, 9, 0.84);
    animation: profifleet-popup-fade-in 180ms ease-out both;
}

.profifleet-popup,
.profifleet-popup * {
    box-sizing: border-box;
}

.profifleet-popup__dialog {
    position: relative;
    width: min(1100px, calc(100vw - 32px), calc(66.6667vh - 21.3333px));
    max-width: 100%;
    max-height: calc(100vh - 32px);
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 18px;
    background: #080c0e;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.52);
    outline: none;
    animation: profifleet-popup-dialog-in 220ms ease-out both;
}

@keyframes profifleet-popup-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes profifleet-popup-dialog-in {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.profifleet-popup__link {
    display: block;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

.profifleet-popup__link:focus-visible {
    outline: 3px solid #f5b400;
    outline-offset: -5px;
}

.profifleet-popup__image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: calc(100vh - 34px);
    object-fit: contain;
}

.profifleet-popup__close {
    position: absolute;
    z-index: 2;
    top: clamp(10px, 3.7%, 38px);
    right: clamp(10px, 2.1%, 24px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: rgba(5, 8, 10, 0.82);
    color: #ffffff;
    font: 400 36px/1 Arial, sans-serif;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.profifleet-popup__close:hover {
    background: #f5b400;
    color: #111111;
    transform: scale(1.04);
}

.profifleet-popup__close:focus-visible {
    outline: 3px solid #f5b400;
    outline-offset: 3px;
}

@supports (height: 100dvh) {
    .profifleet-popup__dialog {
        width: min(1100px, calc(100vw - 32px), calc(66.6667dvh - 21.3333px));
        max-height: calc(100dvh - 32px);
    }

    .profifleet-popup__image {
        max-height: calc(100dvh - 34px);
    }
}

@media (max-width: 767px) {
    .profifleet-popup {
        padding: 12px;
    }

    .profifleet-popup__dialog {
        width: min(calc(100vw - 24px), calc(66.6667vh - 16px));
        max-height: calc(100vh - 24px);
        border-radius: 14px;
    }

    .profifleet-popup__image {
        max-height: calc(100vh - 26px);
    }

    .profifleet-popup__close {
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 767px) and (min-height: 560px) {
    .profifleet-popup__dialog {
        width: min(calc(100vw - 24px), calc(66.6667vh - 16px));
    }
}

@media (max-width: 767px) and (max-height: 559px) {
    .profifleet-popup {
        align-items: flex-start;
    }

    .profifleet-popup__dialog {
        width: min(520px, calc(100vw - 24px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .profifleet-popup,
    .profifleet-popup__dialog,
    .profifleet-popup__close {
        animation: none;
        transition: none;
    }
}
