/***********
Toggle

<button
    class="toggle"
    data-status="true|false"
    data-true="Guests Can View Photos"
    data-false="Guests Cannot View Photos"
>
    <div class="toggleSlider"></div>
</button>

 */

.toggle[data-status="true"]::after {
    content: attr(data-true);
}

.toggle[data-status="false"]::after {
    content: attr(data-false);
}

.toggleSlider {
    background-color: #ccc;
    cursor: pointer;
    transition: .4s;
    height: 24px;
    position: relative;
    width: 50px;
    border-radius: 34px;
}

.toggleSlider::after {
    background-color: #fff;
    bottom: 4px;
    content: "";
    height: 16px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 16px;
    border-radius: 50%;
}

.toggle[data-status="true"] .toggleSlider {
    background-color: var(--brown);
}

.toggle[data-status="true"] .toggleSlider::after {
    background-color: white;
    transform: translateX(23px);
}

/***********
Swal
 */

.swal2-image {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.swal2-html-container {
    line-height: 1.5 !important;
}

.swal2-html-container span {
    font-weight: 500;
}


/************
Account Header
 */

#accountHeader {
    max-width: 810px;
    margin: 20px auto 40px;
    padding: 20px;
    border-bottom: 4px solid var(--brown);
    width: 100%;
}

#accountHeaderNav {
    display: flex;
    justify-content: center;
    gap: 70px;
}

.accountHeaderNavItem {
    font-size: 21px;
    line-height: 32px;
    text-align: center;
    font-weight: 500;
}

.accountHeaderNavItem svg {
    width: 45px;
    height: 45px;
    object-fit: contain;
    margin: 0 auto 5px;
    display: block;
    color: var(--brown);
}

@media (max-width: 800px) {

    #accountHeader {
        padding: 0;
        margin: 30px auto 20px;
        max-width: calc(100% - 40px);
    }

    #accountHeaderNav {
        gap: 25px;
        padding: 0 6px 12px;
    }

    .accountHeaderNavItem {
        font-size: 11px;
    }

    .accountHeaderNavItem svg {
        width: 30px;
        height: 30px;
        margin-bottom: 0;
    }


}


/********************************** Form *****************/

.form {
    padding: 80px 20px;
    max-width: 400px;
    margin: 0 auto;
}

.formTitle {
    font-size: 32px;
    font-weight: bold;
    color: var(--brown);
    text-align: center;
    margin: 0 auto 20px;
}

.formSubtitle {
    font-size: 16px;
    line-height: 24px;
    margin: 0 auto 30px;
    text-align: center;
    font-weight: 500;
}

.form input {
    margin-bottom: 20px;
}

.form .button {
    max-width: none;
    margin-bottom: 20px;
}

.formLink {
    text-align: center;
}

.formLink:last-child {
    margin-top: 10px;
}

.formLink a {
    font-weight: bold;
    color: var(--brown);
}

@media (max-width: 800px) {
    .form {
        padding: 40px 20px;
    }
}