﻿/* =========================================================
   /css/display.css
   사용자 배너 / 팝업 출력 전용 CSS
   ========================================================= */

/* =========================
   Banner Display
   ========================= */

.site-banner-zone {
    max-width: 1180px;
    margin: 22px auto;
    padding: 0 20px;
}

.site-banner-item {
    margin: 0 auto 14px;
    border-radius: 16px;
    overflow: hidden;
    background: #f3f4f6;
    text-align: center;
}

.site-banner-item img {
    width: 100%;
    height: auto;
    display: block;
}

.site-banner-source {
    width: 100%;
}

.site-banner-empty {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 14px;
    font-weight: 800;
}

.site-banner-mobile {
    display: none;
}

@media (max-width: 860px) {
    .site-banner-zone {
        padding: 0 16px;
        margin: 18px auto;
    }

    .site-banner-pc {
        display: none;
    }

    .site-banner-mobile {
        display: block;
    }
}

/* =========================
   Popup Display
   ========================= */

.site-popup-wrap {
    position: relative;
    z-index: 9999;
}

.site-popup-layer {
    position: fixed;
    z-index: 9999;
    width: 420px;
    max-width: calc(100vw - 32px);
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.site-popup-center {
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
}

.site-popup-left {
    top: 120px;
    left: 40px;
}

.site-popup-right {
    top: 120px;
    right: 40px;
}

.site-popup-top {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 100%;
    border-radius: 0;
}

.site-popup-bottom {
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
}

.site-popup-head {
    height: 46px;
    padding: 0 14px 0 17px;
    background: #111827;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.site-popup-head strong {
    font-size: 15px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.site-popup-close {
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.site-popup-body {
    background: #ffffff;
}

.site-popup-body img {
    width: 100%;
    height: auto;
    display: block;
}

.site-popup-text {
    padding: 22px;
    color: #111827;
    font-size: 16px;
    line-height: 1.75;
    font-weight: 600;
}

.site-popup-foot {
    min-height: 42px;
    padding: 10px 15px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
}

.site-popup-foot label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

.site-popup-mobile {
    display: none;
}

@media (max-width: 860px) {
    .site-popup-layer {
        width: calc(100vw - 24px) !important;
        left: 12px !important;
        right: 12px !important;
        top: 78px !important;
        transform: none !important;
        max-width: none;
    }

    .site-popup-pc {
        display: none;
    }

    .site-popup-mobile {
        display: block;
    }
}