/* --- Modal overlay --- */
.buyers-checklist-modal {
    position: fixed;
    inset: 0;
    display: none;
    /* hidden by default              */
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    z-index: 999999;
}

.buyers-checklist-modal #buyers-checklist {
    flex: 1 1 auto;
    overflow-y: auto;
    padding-right: 0.5rem;
    margin-top: 0;
}

.buyers-checklist-modal #buyers-checklist::-webkit-scrollbar {
    width: 0.6rem;
}

.buyers-checklist-modal #buyers-checklist::-webkit-scrollbar-thumb {
    background: #c2c2c2;
    border-radius: 0.3rem;
}

.buyers-checklist-modal #buyers-checklist .container {
    padding-top: 1px;
    padding-bottom: 1px;
}

/* show class toggled by JS */
.buyers-checklist-modal--open {
    display: flex;
}

/* --- Dialog box --- */
.buyers-checklist-modal-dialog {
    background: #fff;
    padding: 1.75rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    max-height: 90%;
    max-width: 90%;
    display: flex;
    flex-direction: column;
}

.buyers-checklist-modal-title {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
}

.buyers-checklist-modal-text {
    margin: 0 0 1.25rem;
    line-height: 1.45;
}

.buyers-checklist-modal-checkbox {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    justify-content: center;
}

.buyers-checklist-modal-checkbox input {
    width: 30px;
}

.buyers-checklist-modal-btn {
    display: inline-block;
    padding: 0.65rem 1.25rem;
    border: none;
    border-radius: 0.5rem;
    background: #0B5B34;
    color: #FFF;
    cursor: pointer;
}

.buyers-checklist-modal-btn:hover {
    background: #083F25;
}

.buyers-checklist-modal-btn:active {
    transform: translateY(1px);
}

.buyers-checklist-parent {
    display: flex;
    justify-content: center;
    padding-bottom: 10px;
}

.buyers-checklist-modal .intro-text h1 {
    line-height: 30px;
}

.adv_wrapper div.adv_info:first-of-type {
    margin-bottom: 10px;
}

section.ad_details .main-slider .badges {
    position: absolute;
    top: 0.625rem;
    left: 0.625rem;
    color: #fff;
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 0.25rem;
}

section.ad_details .main-slider .badges .badge-boosted {
    background-color: #C9A137;
    display: block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

section.ad_details .main-slider .badges .badge-verified {
    display: block;
    background-color: #0B5B34;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

@media only screen and (min-width: 768px) {
    .adv_wrapper {
        position: sticky;
        top: 1px;
    }
}

@media only screen and (max-width: 426px) {
    .container {
        padding-left: 10px;
        padding-right: 2px;
    }

    .grid-content {
        padding: 10px;
    }

    .buyers-checklist-modal-checkbox {
        padding-left: 10px;
    }

    .buyers-checklist-modal-checkbox input {
        width: -webkit-fill-available;
    }
}
