@charset "utf-8";

/* ==================================================================
   광고 신청/수정 페이지용 CSS (밝은 테마)
================================================================== */
:root {
    --main-bg-color: #f9fafb;       /* 페이지 기본 배경색 (아주 연한 회색) */
    --card-bg-color: #ffffff;       /* 카드 배경색 (흰색) */
    --border-color: #e5e7eb;        /* 테두리 색상 (연한 회색) */
    --text-primary-color: #1f2937;  /* 주요 텍스트 색상 (진한 회색) */
    --text-secondary-color: #6b7280;/* 보조 텍스트 색상 (중간 회색) */
    --accent-blue-color: #3b82f6;    /* 포인트 색상 (파랑) */
    --accent-hover-color: #2563eb;  /* 포인트 색상 호버 */
}
#gp-summary-wrap { max-width: 980px; margin: 30px auto; padding: 24px; border: 1px solid var(--border-color); border-radius: 12px; background-color: var(--card-bg-color); color: var(--text-primary-color); }
#gp-summary-wrap h2 { font-size: 22px; font-weight: 700; margin-bottom: 14px; }
#gp-summary-wrap ul { line-height: 1.9; margin: 10px 0 20px 20px; list-style: disc; padding-left: 20px; }
#gp-summary-wrap hr { margin: 20px 0; border-color: var(--border-color); }
#gp-summary-wrap .gp-danger { color: #ef4444; font-weight: 800; }
#gp-summary-wrap a.gp-btn-back { display: inline-block; padding: 10px 16px; border: 1px solid var(--border-color); border-radius: 8px; text-decoration: none; color: var(--text-primary-color); transition: background-color 0.2s; }
#gp-summary-wrap a.gp-btn-back:hover { background-color: #f3f4f6; }

#gp-wrap {
    max-width: 1080px;
    margin: 0 auto 80px;
    color: var(--text-primary-color);
}

#gp-wrap .gp-card {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 18px;
    margin-top: 8px;
    background: var(--main-bg-color);
}

#gp-wrap .gp-title {
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 8px;
}

#gp-wrap .gp-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

#gp-wrap .gp-col {
    flex: 1 1 151px;
    min-width: 240px;
}

#gp-wrap input, #gp-wrap select, #gp-wrap textarea {
    border: 1px solid #a0a2a7;
    border-radius: 8px;
    padding: 10px 12px;
    background-color: var(--card-bg-color);
    color: var(--text-primary-color);
    width: 100%;
    font-weight: 600;
}

#gp-wrap .gp-pill label {
    display: inline-block;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    margin: 4px;
    background: var(--card-bg-color);
    color: var(--text-secondary-color);
    cursor: pointer;
}

#gp-wrap .gp-pill input[type="radio"]:checked + label, #gp-wrap .gp-pill input[type="checkbox"]:checked + label {
    background-color: var(--accent-blue-color);
    border-color: var(--accent-blue-color);
    color: #fff;
}

#gp-wrap .gp-total {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px;
    background-color: var(--main-bg-color);
}

#gp-wrap .gp-danger {
    color: #ef4444;
    font-weight: 800;
}

#gp-wrap .gp-btn {
    padding: 12px 18px;
    border: 1px solid var(--accent-blue-color);
    border-radius: 8px;
    background: var(--accent-blue-color);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 9999px;
    margin: 2px 4px 2px 0;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.badge-red {
    background: #ef4444;
}

.badge-green {
    background: #22c55e;
}

.badge-blue {
    background: #3b82f6;
}

#titlePreviewWrap {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    background: var(--main-bg-color);
    margin-bottom: 8px;
}

#titlePreview {
    padding: 6px;
    border-radius: 4px;
    min-height: 30px;
    font-weight: 600;
}

.bold {
    font-weight: 800;
}

.underline {
    text-decoration: underline;
}

.italic {
    font-style: italic;
}

.fg-pink {
    color: #ec4899;
}

.fg-blue {
    color: #3b82f6;
}

.fg-spring {
    color: #10b981;
}

.fg-yellow {
    color: #f59e0b;
}

.fg-white {
    color: #fff; /* 밝은 배경에서는 보이지 않으므로 사용에 주의가 필요합니다 */
}

.bg-yellow {
    background: #fef9c3;
    color: #713f12;
}

.bg-pink-solid {
    background: #ec4899;
    color: #fff;
}

.bg-teal {
    background: #14b8a6;
    color: #fff;
}

.gp-label-note {
    font-size: 14px;
    color: var(--text-secondary-color);
    margin-top: 8px;
}

.thumbnail-preview-wrap {
    width: 260px;
    margin: 0 auto;
}

.thumbnail-preview .line1 {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    color: var(--text-primary-color);
}

.thumbnail-preview .line2 {
    font-size: 24px;
    text-align: center;
    color: var(--text-primary-color);
}

.thumbnail-preview .line3 {
    font-size: 18px;
    text-align: center;
    padding-top: 7px;
    color: var(--text-primary-color);
}

.m-wrap {
    max-width: 100%;
    margin: auto;
    padding: 0 15px;
    transform: translateX(-6px);
}

.page-chip {
    display: inline-block;
    background: #eef2ff;
    color: #4338ca;
    border-radius: 5px;
    padding: 8px 16px;
    font-weight: 800;
    margin: 0 0 20px 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    border: 1px solid #c7d2fe;
}

.card {
    color: var(--text-primary-color);
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease-in-out;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-hd {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: #f9fafb;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.badge.red {
    background: #e74c3c;
    color: #fff;
}

.badge.gray {
    background: #e5e7eb;
    color: #555;
}

.badge.green {
    background: #27ae60;
    color: #fff;
}

.title {
    color: var(--text-primary-color);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
}

.title:hover {
    color: var(--accent-blue-color);
}

.date {
    margin-left: auto;
    font-size: 14px;
    color: var(--text-secondary-color);
    text-decoration: none;
}

.meta-line {
    padding: 11px 16px;
    color: #555;
    font-size: 13px;
    border-bottom: 1px solid var(--border-color);
    background-color: #f9fafb;
}

.card-bd {
    padding: 16px;
    background: #f9fafb;
}

.btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.btn {
    display: inline-block;
    padding: 8px 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn:hover {
    transform: scale(1.05);
}

.btn.gray {
    background-color: #f3f4f6;
    color: #374151;
    border-color: #d1d5db;
}

.btn.gray:hover {
    background-color: #e5e7eb;
}

.btn.green {
    background-color: #27ae60;
    color: white;
    border-color: #27ae60;
}

.btn.green:hover {
    background-color: #2ecc71;
}

.btn.blue {
    background-color: #3498db;
    color: white;
}

.btn.blue:hover {
    background-color: #5dade2;
}

.btn.outline {
    background: transparent;
    color: #4b5563;
    border: 1px solid #d1d5db;
}

.btn.outline:hover {
    background: #f9fafb;
    color: #1f2937;
}

.empty {
    padding: 40px 10px;
    text-align: center;
    color: var(--text-secondary-color);
    background: var(--main-bg-color);
    border-radius: 12px;
}

.card-thumb-mini{
    position: absolute;
    top: 52px;
    right: 0;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    background:transparent;
}

.card-thumb-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-thumb-mini .no-thumb {
    color: #9ca3af;
    font-size: 12px;
    text-align: center;
    padding: 5px;
    word-break: keep-all;
}

.empty-state-message {
    padding: 4rem 1rem;
    text-align: center;
    margin-top: 1rem;
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.empty-state-message p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-secondary-color);
}

.footer-cta {
    text-align: center;
    padding: 2.5rem 1rem;
}

a.btn-primary-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 14px 28px;
    background-color: var(--accent-blue-color);
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s ease;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px 0 rgba(0,0,0,0.06);
    border: 1px solid transparent;
    border-radius: 8px;
}

a.btn-primary-cta:hover {
    background-color: var(--accent-hover-color);
}

a.btn-primary-cta svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.thumbnail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: #f3f4f6;
    color: #9ca3af;
    font-size: 17px;
    text-align: center;
    line-height: 1.4;
    box-sizing: border-box;
    border-radius: 5px;
}

.gp-swatch{cursor:pointer;box-shadow:0 0 0 1px var(--border-color) inset; border-radius: 4px;}
.gp-swatch:hover{transform:scale(1.06);}

.color-row{display:flex;gap:8px;align-items:center}
.color-row input[type="color"]{width:36px;height:36px;border:none;background:transparent; padding: 0;}
.color-row input[type="text"]{width:110px;text-transform:uppercase}
#liveThumb .line1,#liveThumb .line2,#liveThumb .line3{font-weight:700;text-align:center}

#gp-wrap #wr_33_color,
#gp-wrap #wr_34_color,
#gp-wrap #wr_35_color{
    width: 50px !important;
    height:50px !important;
    padding:0 !important;
    background:transparent;
    border-radius:8px;
    display:inline-block;
    border: 1px solid var(--border-color);
}
#gp-wrap #wr_33_color::-webkit-color-swatch-wrapper,
#gp-wrap #wr_34_color::-webkit-color-swatch-wrapper,
#gp-wrap #wr_35_color::-webkit-color-swatch-wrapper{ padding:0; }
#gp-wrap #wr_33_color::-webkit-color-swatch,
#gp-wrap #wr_34_color::-webkit-color-swatch,
#gp-wrap #wr_35_color::-webkit-color-swatch{ border:none; border-radius:8px; }

#gp-wrap #wr_33,
#gp-wrap #wr_34,
#gp-wrap #wr_35{
    width:110px !important;
    min-width:110px;
    text-transform:uppercase;
}

#gp-wrap .gp-card .gp-row .gp-col > div{
    display:flex;
    gap:8px;
    align-items:center;
    font-size: 15px;
}

.option-price-badge {
    margin-left: 8px;
    font-size: 0.95em;
    font-weight: 600;
    color: #db2777; /* 핑크 계열 */
    display: inline;
}

.option-price-badge.option-price-active {
    text-decoration: underline;
}

#paymentSummaryPanel { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; border:1px solid var(--border-color); }
.btn-pay-highlight { box-shadow: 0 6px 18px rgba(0,0,0,0.12); transform: translateY(-1px); transition: transform .12s ease; }

.card-thumb-mini.card-thumb--230x88 {width: 232px;height: 93px;}
.card-thumb-mini.card-thumb--88x230 {width: 93px;height: 166px;}
.card-thumb-mini.card-thumb--one-line { width: 232px; height: 64px; }

.card-thumb-mini .adthumb{
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden;
    display: block;
}

.card-thumb-mini .adthumb img{
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    display: block;
}
.card-thumb-mini .adthumb.is-cover img{ object-fit: cover; }

.card-thumb-mini .adthumb .adlayer{
    position: absolute; inset: 0;
    pointer-events: none;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 6px 8px; box-sizing: border-box;
}

.card-thumb-mini .adthumb .line-1{
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.card-thumb-mini .adthumb .line-2{
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.card-thumb-mini .adthumb .adlayer .bar{
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 22px; display: flex; align-items: center; gap: 6px;
    padding: 0 6px; box-sizing: border-box;
}

.card-thumb-mini .adthumb.adtpl--scroll .adlayer{ display:none !important; }

.card-thumb-mini .adthumb.adtpl--premium .adlayer .mid,
.card-thumb-mini .adthumb.adtpl--premium .adlayer .bot,
.card-thumb-mini .adthumb.adtpl--premium .adlayer .bar,
.card-thumb-mini .adthumb.adtpl--signboard .adlayer .mid,
.card-thumb-mini .adthumb.adtpl--signboard .adlayer .bot,
.card-thumb-mini .adthumb.adtpl--signboard .adlayer .bar,
.card-thumb-mini .adthumb.adtpl--tricolor .adlayer .mid,
.card-thumb-mini .adthumb.adtpl--tricolor .adlayer .bot,
.card-thumb-mini .adthumb.adtpl--tricolor .adlayer .bar{
    display:none !important;
}

.card-thumb-mini .adthumb.adtpl--oneline .adlayer .top,
.card-thumb-mini .adthumb.adtpl--oneline .adlayer .bot,
.card-thumb-mini .adthumb.adtpl--oneline .adlayer .bar{
    display:none !important;
}
.card-thumb-mini .adthumb.adtpl--oneline .adlayer .mid{
    display:flex !important; align-items:center; justify-content:center;
}

.card-thumb-mini .adthumb.adtpl--scroll img{
    transform-origin: center;
    object-fit: cover;
}

.m-wrap[data-js="ad-mng"] .card-thumb-mini{
    position:absolute;
    right:0;
    display:flex; align-items:center; justify-content:center;
    overflow:hidden;
    background:transparent;
}

.m-wrap[data-js="ad-mng"] .card-thumb-mini.card-thumb--230x88{width:232px;height:93px;top: 52px;}

/* ==================================================================
    ★★★ [ 여기가 바로 스크롤배너 크기를 조절하는 부분입니다 ] ★★★
================================================================== */
.m-wrap[data-js="ad-mng"] .card-thumb-mini.card-thumb--scroll {
    width: 162px;      /* 스크롤배너 가로 너비 */
    height: 160px;    /* 스크롤배너 세로 높이 (이 값을 수정하세요) */
    top: 51px;
}

.m-wrap[data-js="ad-mng"] .card-thumb-mini.card-thumb--one-line{width: 183px;height: 44px;top: 52px;right: -16px;}

.m-wrap[data-js="ad-mng"] .card-thumb-mini .adthumb{
    position:relative;
    width:100%;
    height:100%;
    overflow:hidden;
    display:block;
}

.m-wrap[data-js="ad-mng"] .card-thumb-mini .adthumb img{
    width:100% !important; height:100% !important; object-fit:contain !important; display:block;
}
.m-wrap[data-js="ad-mng"] .card-thumb-mini .adthumb.is-cover img{ object-fit:cover !important; }

.m-wrap[data-js="ad-mng"] .card-thumb-mini .adthumb.adtpl--scroll img{
    transform:scaleX(0.94); transform-origin:center; object-fit:cover !important;
}

.m-wrap[data-js="ad-mng"] .card-thumb-mini .adthumb.adtpl--scroll .adlayer{ display:none !important; }

.m-wrap[data-js="ad-mng"] .card-thumb-mini .adthumb.adtpl--premium .adlayer .mid,
.m-wrap[data-js="ad-mng"] .card-thumb-mini .adthumb.adtpl--premium .adlayer .bot,
.m-wrap[data-js="ad-mng"] .card-thumb-mini .adthumb.adtpl--premium .adlayer .bar,
.m-wrap[data-js="ad-mng"] .card-thumb-mini .adthumb.adtpl--signboard .adlayer .mid,
.m-wrap[data-js="ad-mng"] .card-thumb-mini .adthumb.adtpl--signboard .adlayer .bot,
.m-wrap[data-js="ad-mng"] .card-thumb-mini .adthumb.adtpl--signboard .adlayer .bar,
.m-wrap[data-js="ad-mng"] .card-thumb-mini .adthumb.adtpl--tricolor .adlayer .mid,
.m-wrap[data-js="ad-mng"] .card-thumb-mini .adthumb.adtpl--tricolor .adlayer .bot,
.m-wrap[data-js="ad-mng"] .card-thumb-mini .adthumb.adtpl--tricolor .adlayer .bar{
    display:none !important;
}

.m-wrap[data-js="ad-mng"] .card-thumb-mini .adthumb.adtpl--oneline .adlayer .top,
.m-wrap[data-js="ad-mng"] .card-thumb-mini .adthumb.adtpl--oneline .adlayer .bot,
.m-wrap[data-js="ad-mng"] .card-thumb-mini .adthumb.adtpl--oneline .adlayer .bar{
    display:none !important;
}
.m-wrap[data-js="ad-mng"] .card-thumb-mini .adthumb.adtpl--oneline .adlayer .mid{
    display:flex !important; align-items:center; justify-content:center;
}

.m-wrap[data-js="ad-mng"] .card-thumb-mini .thumbnail-placeholder{
    width: 229px;
    height: 93px;
    display:flex;
    align-items:center;
    justify-content:center;
    background: #7b7b7b;
    color: #f7f7f7;
    font-size:15px;
    text-align:center;
    line-height:1.4;
    box-sizing:border-box;
    border: 2px solid #b7b7b7;
}

.opt-price { margin-left:.35em; font-weight:600; font-size:.92em; opacity:.85; }