/* 약관 시행일 이력 — 더즌 private.html 과 같은 버튼 토글 드롭다운 */

.terms-version-dropdown.dropdown_wrap {
    position: relative;
    display: inline-block;
    z-index: 30;
    margin-top: 8px;
    vertical-align: top;
    text-align: left;
}

.terms-version-dropdown .dropdown_button.dropbtn {
    display: inline-block;
    box-sizing: border-box;
    padding: 0 20px;
    width: 200px;
    height: 40px;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    color: #000;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
}

.terms-version-dropdown .dropdown_button.dropbtn:after {
    content: '\25BE';
    margin-left: 8px;
}

.terms-version-dropdown .dropdown_button.dropbtn:hover,
.terms-version-dropdown .dropdown_button.dropbtn:focus {
    background-color: #fafafa;
    border: 1px solid #ccc;
}

.terms-version-dropdown .dropdown_content {
    display: none;
    position: absolute;
    top: 42px;
    z-index: 1;
    min-width: 198px;
    overflow: auto;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    font-size: 16px;
    font-weight: 400;
    text-align: center;
}

.terms-version-dropdown .dropdown_content a {
    display: block;
    padding: 1.5rem;
    color: #212121;
    text-decoration: none;
}

.terms-version-dropdown .dropdown_content a.selected {
    background-color: #f0f5ff;
}

.terms-version-dropdown .dropdown_content.show {
    display: block;
}

.header_2.terms-version-header,
.header_2:has(.terms-version-dropdown) {
    height: auto;
    min-height: 52px;
    overflow: visible;
    gap: 8px;
    position: relative;
    z-index: 30;
}

.modal-title:has(.terms-version-dropdown) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.modal-header:has(.terms-version-dropdown),
.modal-title:has(.terms-version-dropdown) {
    overflow: visible;
}

.modal-dialog-scrollable .modal-content:has(.terms-version-dropdown) {
    overflow: visible;
}

@media screen and (max-width: 374px) {
    .header_2.terms-version-header,
    .header_2:has(.terms-version-dropdown) {
        height: auto;
        flex-direction: column;
        align-items: center;
    }
}
