.wishlist-modal {
    display: none;
}

.wishlist-modal.show {
    display: block;
    position: fixed;
    opacity: 1;
    z-index: 5;
    pointer-events: all;
}

.wishlist-modal.show + .modal-backdrop {
    pointer-events: all
}

.wishlist-modal.fade .modal-dialog {
    position: relative;
}

.wishlist-modal .close {
    color: var(--black1);
    border: none;
    padding: 0;
    height: 2rem;
    transition: all ease .2s;
}

.wishlist-modal .close:hover {
    transform: rotateZ(90deg);
}

.wishlist-modal .wishlist-list {
    padding: 0;
    margin: 0;
    list-style: none;
}
.wishlist-modal .modal-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.5rem;
    color: var(--black1);
    margin-bottom: 1.25rem;
}

.wishlist-modal .modal-header::after {
    content: none
}

.wishlist-modal .wishlist-list-item {
    background: var(--white2);
    padding: 0.5rem 0.62rem;
    cursor: pointer;
    margin-bottom: 1rem;
}
.wishlist-modal .wishlist-list-item p {
    font-weight: 500;
    line-height: 1.5rem;
}
.wishlist-modal .wishlist-list-item:hover {
    background: var(--white2);
}

.wishlist-modal .modal-body .form-group {
    margin-bottom: 0
}

.wishlist-modal .modal-body .form-group .form-control {
    border-radius: 0;
    background: none;
    color: black
}

.wishlist-modal .modal-content {
    width: 100%
}

.wishlist-modal .modal-footer {
    border: none;
    display: flex;
    gap: 1rem;
}

.wishlist-modal .modal-footer .button,
.wishlist-modal .modal-footer button {
    font-size: 1rem;
    line-height: 1rem;
    text-transform: none;
    padding: 1rem;
    width: 100%;
    border: 1px solid var(--black);
    box-shadow: 0px 4px 20px -16px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    box-sizing: border-box;
    font-weight: 500;
}
.wishlist-modal .modal-footer .btn {
    text-transform: none
}

.wishlist-modal .modal-backdrop {
    pointer-events: none
}

.wishlist-modal .modal-backdrop.in {
    pointer-events: all
}

.wishlist-modal+.modal-backdrop {
    pointer-events: none
}

.wishlist-modal+.modal-backdrop.in {
    pointer-events: all
}

/************************/
/* create modal */
.wishlist-login .modal-text,
.wishlist-create label {
    color: var(--black1);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.5rem;
    display: block;
    margin-bottom: 1.94rem;
}
.wishlist-create input::placeholder {
    color: var(--grey4);
}
.wishlist-create input {
    width: 100%;
    font-family: "SF Pro Display";
    padding: 0;
    border: none;
    color: var(--black1);
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.5rem;
    border-bottom: 1px solid var(--white2);
    padding-bottom: 1rem;
}
.wishlist-create input:focus-visible {
    outline: none;
}
/* confirm message */

.wishlist-toast {
    position: fixed;
    z-index: -1;
    opacity: 0;
    top: 0;
    right: 0;
    box-shadow: 0px 4px 64px -16px rgba(0, 0, 0, 0.05);
    background: var(--white);
    transition: all ease .2s;
    box-sizing: border-box;
}
.wishlist-toast.isActive {
    z-index: 5;
    opacity: 1;
}
.wishlist-toast-text {
    font-weight: 700;
    line-height: 1.5rem;
    text-align: center;
    font-size: 1.125rem;
}

/************************/
/* mobile */
@media (max-width: 767px) {
    .wishlist-modal.fade .modal-dialog {
        width: 25.5rem;
        margin: auto 1rem 4rem;
        padding: 1.75rem 1rem 2.5rem;
    }
    .wishlist-login .modal-text,
    .wishlist-create label,
    .wishlist-modal .modal-title {
        font-size: 0.875rem;
        line-height: 1rem;
    }
    .wishlist-toast-text,
    .wishlist-create input,
    .wishlist-modal .wishlist-list-item p {
        font-size: 0.875rem;
        line-height: 1.25rem;
    }
    .wishlist-modal .modal-footer .button, 
    .wishlist-modal .modal-footer button {
        font-size: 0.875rem;
        line-height: 1rem; 
        padding: 0.5rem 0;
    }
    .wishlist-modal .modal-footer {
        gap: 0.5rem;
    }
    .wishlist-modal .close {
        width: 3rem;
        height: 3rem;
    }
    .wishlist-modal .close svg {
        width: 2.14rem;
        height: 2.14rem;
    }
}

/************************/
/* tablet and mobile */
@media (max-width: 1081px),
(any-hover: none) {
.wishlist-modal.show {
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.90);
        backdrop-filter: blur(2px);
        display: flex;
        align-items: flex-end;
        justify-content: center;
    }
    .wishlist-modal.fade .modal-dialog {
        height: min-content;
        background: var(--white);
        margin-bottom: 4.81rem;
        padding: 2.13rem 1.5rem 4rem;
        box-shadow: 0px 4px 16px 0px rgba(0, 0, 0, 0.06);
        border: 1px solid var(--black);
    }
    .wishlist-modal .modal-header {
        position: absolute;
        width: 100%;
        left: 0;
        bottom: -1.5rem;
        position: absolute;
        text-align: center;
    }
    .wishlist-modal .close {
        background: var(--white);
        box-sizing: border-box;
    }
    .wishlist-toast {
        background: rgba(255, 255, 255, 0.90);
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: flex-end;
    }
    .wishlist-toast p {
        padding: 1rem;
        background: var(--white);
        box-shadow: 0px 4px 16px 0px rgba(0, 0, 0, 0.06);
        border: 1px solid var(--black);
        margin-bottom: 2rem;
    }
}

/************************/
/* tablet */
@media (min-width:768px) and (max-width: 1081px), 
(min-width: 991px) and (any-hover: none) {
    .wishlist-modal.fade .modal-dialog {
        /* width: 25.5rem; */
        padding: 2rem 1.5rem 4rem;
    }
    .wishlist-modal .close {
        width: 3.5rem;
        height: 3.5rem;
    }
    .wishlist-modal .close svg {
        width: 2.5rem;
        height: 2.5rem;
    }
}

/************************/
/* desktop */
@media (min-width: 991px) {
    .wishlist-modal,
    .wishlist-toast {
        width: 25%;
        transform: translateX(100%);
    }
    .wishlist-modal {
        top: var(--headerHeight);
        right: 0;
        overflow: hidden;
        outline: 0;
        transition: all ease .2s;
        pointer-events: none;
    }
    .wishlist-modal .modal-header {
        text-align: right;
    }
    .wishlist-modal .modal-body {
        padding: 1.56rem 3rem 0 1.5rem;
    }    
    .wishlist-modal.fade .modal-dialog {
        padding: 1rem 1rem 0 0;
        box-shadow: 0px 4px 64px -16px rgba(0, 0, 0, 0.05);
        border: 2px solid var(--black);
        background-color: var(--white);
        border-radius: 8px;
    }
    .wishlist-modal .modal-footer {
        padding: 1.5rem 3rem 2.5rem 1.5rem;
    }

    .wishlist-toast {
        padding: 2.5rem 4rem 2.5rem 1.5rem;
    }
    .wishlist-modal.show,
    .wishlist-toast.isActive {
        transform: translateX(0);
    }
}