

/* --- popup --- */

.df-modal__main {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.4rem;
    z-index: 10000;

    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease;
}

.df-modal__main.active {
    opacity: 1;
    visibility: visible;
}

.df-modal__content {
    font-size: 1.4rem;
    color: #111;
    background: #fff;
    max-width: 540px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 2rem;
    border-radius: .5rem;
    position: relative;
    transform: translateY(2rem);
    transition: transform .3s ease;
    overflow-y: auto;
}

.df-modal__main.active .df-modal__content {
    transform: translateY(0);
}

.df-modal__content > h2 {
    max-width: 75%;
}

.df-modal__content p {
    font-size: 1.4rem;
}

.df-modal__content p strong {
    font-weight: bold;
}

.df-cookie-info {
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
}

.df-flex-column {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: .8rem;
}

body.df-modal-open {
    overflow: hidden;
}


/* --- Switch --- */

.df-checkbox__list {
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
}

.df-checkbox__list:first-of-type {
    margin-top: 1.5rem;
    border-top: 1px solid #ddd;
}

.df-checkbox {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.df-checkbox input {
    position: absolute;
    opacity: 0;
}

.df-label {
    font-size: 1.4rem;
    font-weight: bold;
}

.df-switch {
    width: 44px;
    height: 24px;
    background: #ccc;
    border-radius: 50px;
    position: relative;
    transition: background .3s;
    cursor: pointer;
}

.df-switch::after {
    content: "";
    width: 18px;
    height: 18px;
    background: white;
    position: absolute;
    top: 3px;
    left: 3px;
    border-radius: 50%;
    transition: transform 0.3s;
}

.df-checkbox input:checked + .df-switch {
    background: #000;
}

.df-checkbox input:checked + .df-switch::after {
    transform: translateX(20px);
}

.df-checkbox input:focus + .df-switch {
    outline: 2px solid #00f;
    outline-offset: 2px;
}


/* --- button --- */

.df-group__btn {
    display: flex;
    flex-wrap: wrap;
    margin-top: 2rem;
    gap: .8rem;
}

button.__btn {
    display: block;
    font-size: 1.4rem;
    padding: .5rem 1rem;
    color: #000;
    background: #fff;
    border: 1px solid #000;
    border-radius: .5rem;
    transition: color .3s ease, background .3s ease;
    cursor: pointer;
}

button.__focus {
    color: #fff;
    background: #000;
}

button.__btn:hover {
    color: #fff;
    background: #333;
}

button.df-close-btn {
    position: absolute;
    top: 1.8rem;
    right: 2rem;
}


/* --- Link --- */

.df-link {
    font-size: 1.4rem;
    margin-top: 1rem;
    max-width: 75%;
}

.df-modal__main a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.df-modal__main a[target=_blank]:after {
    font-family: 'dashicons';
    content: "\f504";
    vertical-align: -.1em;
}


/* --- Media Queries ---*/

@media (hover: none) and (pointer: coarse) {
  .df-checkbox__list[data-name=mask] {
    display: none;
  }
}

