/* NOTE: DISCONTINUED OVERLAY (inc/new/sections/discontinued-overlay.php). It locks the page behind it and
   starts under the promo bar and the header, which stay on top so the menu can still be opened. */

html:has(.kmd-discontinued),
body:has(.kmd-discontinued) {
    overflow: hidden;
}

.kmd-discontinued {
    position: fixed;
    inset: calc(var(--kmd-promo-bar-height) + var(--kmd-header-height)) 0 0;
    z-index: 25;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.77);
}

.kmd-discontinued__message {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    max-width: 600px;
    max-height: 100%;
    overflow-y: auto;
    padding: 30px 20px;
    border: 1px solid var(--kmd-dark-line);
    background: var(--kmd-black);
    color: var(--kmd-white);
}

.kmd-discontinued__title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.kmd-discontinued__image img {
    display: block;
    width: 100%;
    height: auto;
}

@media screen and (max-width: 991px) {
    .kmd-discontinued__image img {
        width: auto;
        max-width: 100%;
        max-height: 200px;
    }
}

@media screen and (max-width: 479px) {
    .kmd-discontinued__title {
        font-size: 19px;
    }
}
