/* MODAL CONTAINER: START */

.open-modal {
    background: transparent;
    border: none;
}

.modal-area {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: 0.4s;
    padding: 10px;
}

.modal-bg {
    width: 100%;
    height: 100%;
    background-color: var(--background-blur-color);
    position: absolute;
    top: 0;
    left: 0;
    backdrop-filter: blur(2.5px);
}

.modal-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 50%;
    max-width: 500px;
    padding: 20px;
    border-radius: 15px;
    background-color: var(--bg-1);
    color: var(--text-1);
    overflow: auto;
}

.close-modal {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    cursor: pointer;
}

.modal-contents > * {
    padding: 3px;
}

.modal-inner-wrapper {
    visibility: hidden;
    display: none;
    opacity: 0;
    transition: 0.4s;
}

.modal-inner-wrapper > * {
    margin: 5px 0;
}

.modal-inner-wrapper > h3 {
    margin-top: 16px;
}

/* MODAL CONTAINER: END */

/* MODAL CONTENT: START */

.settings-group {
    display: grid;
    gap: 12px;
}

.theme-segmented {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.theme-segmented label {
    min-width: 0;
}

.theme-segmented input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.theme-segmented span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid hsl(var(--rfg-1), 0.28);
    border-radius: 8px;
    background: var(--bg-1-1);
    color: var(--text-1);
    cursor: pointer;
}

.theme-segmented input:checked + span {
    border-color: transparent;
    background: var(--fg-1);
    color: var(--bg-1);
    font-weight: 800;
}

/* MODAL CONTENT: END */
