.pop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

body.popup-open {
    overflow: hidden;
}

.pop.show {
    display: flex;
}

.pop-proposal .pop-inner > *,
.pop-proposal .pop-inner * {
    box-shadow: none !important;
    outline: none !important;
}

/* Submit button — exact .btn--invert style */
.pop-proposal form button[type="submit"],
.pop-proposal form input[type="submit"] {
    overflow: hidden !important;
    border-radius: 2.5rem !important;
    display: inline-block !important;
    padding: 1rem 2.5rem !important;
    font-size: 1.5rem !important;
    font-weight: bold !important;
    cursor: pointer !important;
    z-index: 2 !important;
    color: #f7941e !important;
    border: 0.2rem solid #f7941e !important;
    background-color: #f7941e !important;
    -webkit-transition: 0.3s linear !important;
    -o-transition: 0.3s linear !important;
    transition: 0.3s linear !important;
}

.pop-proposal form button[type="submit"]::before,
.pop-proposal form input[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 30rem;
    height: 30rem;
    background-color: white;
    -webkit-transition: 0.4s ease !important;
    -o-transition: 0.4s ease !important;
    transition: 0.4s ease !important;
    border-radius: 100%;
    z-index: -1;
}

.pop-proposal form button[type="submit"]:hover,
.pop-proposal form input[type="submit"]:hover {
    color: #fff !important;
}

.pop-proposal form button[type="submit"]:hover::before,
.pop-proposal form input[type="submit"]:hover::before {
    width: 0 !important;
    height: 0 !important;
}

.pop-proposal .pop-inner {
    max-width: var(--popup-width, 800px);
    width: calc(100% - 40px);
    background: #fff;
    border-radius: 20px;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 40px;
    margin: 20px;
    position: relative;
    height: var(--popup-height, 90vh);
    display: flex;
    flex-direction: column;
}

.pop-proposal .pop-cont {
    flex: 1;
    overflow-y: auto;
    padding-right: 20px;
    margin-right: -10px; /* Приховуємо скролбар */
    scrollbar-width: thin; /* Для Firefox */
    scrollbar-color: #fbac34 transparent; /* Для Firefox */
    -ms-overflow-style: none; /* Для IE/Edge */
    height: 100%;
    max-width: var(--container-width, 80%);
}

/* Приховуємо скролбар для Webkit (Chrome/Safari) за замовчуванням */
.pop-proposal .pop-cont::-webkit-scrollbar {
    width: 8px;
    transition: width 0.3s ease;
}

/* Показуємо скролбар при наведенні або прокручуванні */
.pop-proposal .pop-cont:hover::-webkit-scrollbar,
.pop-proposal .pop-cont:active::-webkit-scrollbar,
.pop-proposal .pop-cont:focus::-webkit-scrollbar,
.pop-proposal .pop-cont.scrolling::-webkit-scrollbar {
    width: 12px;
}

.pop-proposal .pop-cont::-webkit-scrollbar-track {
    background: rgba(251, 172, 52, 0.15);
    border-radius: 6px;
    margin: 2px;
}

.pop-proposal .pop-cont::-webkit-scrollbar-thumb {
    background: #fbac34;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

.pop-proposal .pop-cont::-webkit-scrollbar-thumb:hover {
    background: #e09e2a;
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

/* Приховуємо полосу прокрутки для фільтрів */
.filters_block .select-line::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.filters_block .select-line {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.proposal-content {
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.5;
    background: #fff;
    box-shadow: none;
}

.proposal-content h1,
.proposal-content h2,
.proposal-content h3,
.proposal-content h4 {
    margin-bottom: 20px;
    margin-top: 30px;
}

.proposal-content p {
    margin-bottom: 15px;
}

.pop-proposal .pop-close {
    position: absolute;
    right: 15px;
    top: 15px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    z-index: 10;
}

.pop-proposal .pop-close::before,
.pop-proposal .pop-close::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 20px;
    background-color: #fbac34;
    transform-origin: center;
}

.pop-proposal .pop-close::before {
    transform: rotate(45deg);
}

.pop-proposal .pop-close::after {
    transform: rotate(-45deg);
}

.proposal-content {
    margin-bottom: 30px;
}

.proposal-form {
    padding-top: 30px;
    border-top: 1px solid #eee;
}
/* RU/EN: попап показує українську пропозицію й форму (page-partners.php) — примітка про мову документа */
.pop-proposal .proposal-lang-note {
    margin: 0 0 1.6rem;
    font-size: 1.5rem;
    font-style: italic;
    color: #757575;
    text-align: center;
}
