/**
 * Zyss Popup 스타일
 */

.zyss-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    padding: 20px;
    animation: zyss-popup-fade-in 0.3s ease;
}

/* 위치별 정렬 */
.zyss-popup-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.zyss-popup-top {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 40px;
}

.zyss-popup-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 40px;
}

.zyss-popup-top-left {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 40px;
}

.zyss-popup-top-right {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 40px;
}

.zyss-popup-bottom-left {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 40px;
}

.zyss-popup-bottom-right {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 40px;
}

@keyframes zyss-popup-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.zyss-popup-content {
    position: relative;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    animation: zyss-popup-slide-up 0.4s ease;
}

@keyframes zyss-popup-slide-up {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.zyss-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.zyss-popup-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.zyss-popup-body {
    font-size: 16px;
    line-height: 1.6;
}

.zyss-popup-body h1,
.zyss-popup-body h2,
.zyss-popup-body h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.zyss-popup-body p {
    margin-bottom: 15px;
}

.zyss-popup-body a {
    color: #212529;
    text-decoration: underline;
}

.zyss-popup-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.zyss-popup-button-wrapper {
    margin-top: 25px;
    text-align: center;
}

.zyss-popup-button {
    display: inline-block;
    padding: 14px 32px;
    background: #212529;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 6px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.zyss-popup-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.zyss-popup-dont-show {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
    font-size: 14px;
}

.zyss-popup-dont-show label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.zyss-popup-dont-show-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* 반응형 */
@media (max-width: 768px) {
    .zyss-popup-overlay {
        padding: 10px;
    }

    .zyss-popup-top,
    .zyss-popup-bottom,
    .zyss-popup-top-left,
    .zyss-popup-top-right,
    .zyss-popup-bottom-left,
    .zyss-popup-bottom-right {
        padding: 20px;
    }

    .zyss-popup-content {
        padding: 30px 20px;
        max-height: 80vh;
    }

    .zyss-popup-close {
        top: 10px;
        right: 10px;
    }

    .zyss-popup-body {
        font-size: 14px;
    }

    .zyss-popup-button {
        padding: 12px 24px;
        font-size: 15px;
    }
}
