﻿/* 팝업창 관리 · 메인 팝업 레이어 */
.yg-board-wrap {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px 20px 70px;
    box-sizing: border-box
}

.yg-board-list-wrap {
    padding-top: 40px;
}

.yg-board-head {
    text-align: center;
    margin-bottom: 84px;
}

.yg-board-title {
    display: inline-block;
    position: relative;
    margin: 0;
    font-family: 'NanumSquareRound', 'Pretendard', sans-serif !important;
    font-size: 32px;
    font-weight: 800;
    color: #00377b;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.yg-board-title img {
    position: absolute;
    top: -14px;
    right: -22px;
    width: 22px;
    height: auto;
}

.yg-board-desc {
    margin: 8px 0 0;
    font-family: 'NanumSquareRound', 'Pretendard', sans-serif !important;
    font-size: 17px;
    font-weight: 700;
    color: #00377b;
    line-height: 1.5;
}

/* 상단 버튼바 */
.yg-board-wrap .btn_top {
    position: static;
    padding: 0;
    margin: 0 0 14px;
    text-align: right
}

.yg-board-wrap .btn_top li {
    display: inline-block;
    margin-left: 4px;
    float: none
}

/* 글쓰기 버튼: 플로팅 → 일반 버튼 */
.yg-board-wrap .fix_btn.write_btn {
    position: static;
    display: inline-block;
    width: auto;
    height: auto;
    padding: 11px 24px;
    line-height: 1 !important;
    font-size: 15px;
    font-weight: 700;
    border-radius: 24px !important;
    background: #00377b;
    color: #fff;
    box-shadow: none
}

.yg-board-wrap .fix_btn.write_btn:before {
    content: "글쓰기 "
}

/* 테이블 */
.yg-board-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 2px solid #00377b;
    table-layout: fixed
}

/* 구 gnuboard #bo_list nth-of-type — 체크박스 없을 때 2번째 열(제목) 너비 오적용 방지 */
#bo_list.yg-board .yg-board-table th,
#bo_list.yg-board .yg-board-table td {
    width: auto !important;
    text-align: inherit
}

#bo_list.yg-board .yg-board-table .yg-th-chk,
#bo_list.yg-board .yg-board-table .yg-td-chk {
    width: 46px !important;
    max-width: 46px;
    text-align: center !important
}

#bo_list.yg-board .yg-board-table .yg-th-num,
#bo_list.yg-board .yg-board-table .yg-td-num {
    width: 90px !important;
    max-width: 90px;
    min-width: 90px;
    text-align: center !important
}

#bo_list.yg-board .yg-board-table .yg-th-subject {
    text-align: center !important
}

#bo_list.yg-board .yg-board-table .yg-th-date,
#bo_list.yg-board .yg-board-table .yg-td-date {
    text-align: center !important
}

.yg-board-table col.yg-col-num {
    width: 90px
}

.yg-board-table col.yg-col-date {
    width: 130px
}

.yg-board-table thead th {
    padding: 16px 10px;
    border-bottom: 1px solid #dfe2ea;
    font-size: 15px;
    font-weight: 700;
    color: #00377b;
    text-align: center;
    background: #f7f8fb
}

.yg-board-table tbody td {
    padding: 17px 12px;
    border-bottom: 1px solid #eceef3;
    font-size: 15px;
    color: #555;
    text-align: center;
    vertical-align: middle
}

.yg-board-table tbody tr:hover {
    background: #f7f9fc
}

.yg-td-num {
    color: #9aa1b0;
    font-size: 14px
}

.yg-td-date {
    color: #9aa1b0;
    font-size: 14px;
    white-space: nowrap
}

.yg-td-subject {
    text-align: left !important
}

.yg-subject {
    display: inline-block;
    max-width: 100%;
    color: #2a2f3a;
    font-weight: 500;
    line-height: 1.4;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.yg-board-table tbody tr:hover .yg-subject-text {
    color: #d50078
}

.yg-subject:hover .yg-subject-text {
    color: #d50078;
    text-decoration: underline
}

/* 공지 */
.yg-board-table tr.yg-notice {
    background: #fdf3f8
}

.yg-board-table tr.yg-notice:hover {
    background: #fbeaf3
}

.yg-notice-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 12px;
    background: #d50078;
    color: #fff;
    font-size: 12px;
    font-weight: 700
}

.yg-board-table tr.yg-notice .yg-subject {
    font-weight: 700;
    color: #00377b
}

/* 제목줄 아이콘/뱃지 */
.yg-new-icon {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 3px;
    background: #d50078;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    vertical-align: middle
}

.yg-cmt {
    margin-left: 6px;
    color: #d50078;
    font-weight: 700;
    font-size: 13px
}

.yg-cate-link {
    display: inline-block;
    margin-right: 6px;
    padding: 2px 10px;
    border-radius: 12px;
    background: #eef2f9;
    color: #00377b !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    vertical-align: middle
}

.yg-td-subject .fa-download,
.yg-td-subject .fa-link,
.yg-td-subject .fa-lock {
    margin-left: 6px;
    color: #9aa1b0;
    font-size: 12px
}

.yg-empty {
    padding: 70px 0 !important;
    text-align: center !important;
    color: #9aa1b0;
    font-size: 15px;
    border-bottom: 1px solid #eceef3
}

/* 카테고리 네비 */
.yg-board-cate {
    margin-bottom: 18px
}

.yg-board-cate h2 {
    position: absolute;
    width: 0;
    height: 0;
    font-size: 0;
    line-height: 0;
    overflow: hidden
}

.yg-board-cate ul {
    border: 0;
    background: transparent;
    padding: 0
}

.yg-board-cate ul:after {
    display: block;
    visibility: hidden;
    clear: both;
    content: ""
}

.yg-board-cate li {
    float: none;
    display: inline-block
}

.yg-board-cate a {
    padding: 8px 16px;
    line-height: 1;
    color: #666
}

.yg-board-cate #bo_cate_on {
    color: #d50078
}

.yg-board-cate #bo_cate_on:after {
    background: #d50078
}

/* 전체건수 / 검색 / 페이징 */
.yg-board-wrap #bo_list_total {
    margin: 22px 0 0;
    padding: 0;
    background: transparent;
    color: #888;
    border-radius: 0;
    text-align: center
}

.yg-board-wrap #bo_sch {
    margin: 18px auto 0;
    max-width: 420px;
    border: 1px solid #dfe2ea;
    border-radius: 24px;
    overflow: hidden
}

.yg-board-wrap #bo_sch select {
    padding-left: 12px
}

.yg-board-wrap .pg_wrap {
    text-align: center;
    margin-top: 24px
}

/* 반응형 */
@media (max-width:768px) {
    .yg-board-wrap {
        padding: 16px 16px 50px
    }

    .yg-board-list-wrap {
        padding-top: 24px;
    }

    .yg-board-head {
        margin-bottom: 68px;
    }

    .yg-board-title {
        font-size: 24px;
    }

    .yg-board-desc {
        font-size: 15px;
    }

    .yg-board-table col.yg-col-num {
        width: 44px
    }

    #bo_list.yg-board .yg-board-table .yg-th-num,
    #bo_list.yg-board .yg-board-table .yg-td-num {
        width: 44px !important;
        max-width: 44px;
        min-width: 44px
    }

    .yg-board-table col.yg-col-date {
        width: 78px
    }

    .yg-board-table thead th {
        padding: 12px 4px;
        font-size: 13px
    }

    .yg-board-table tbody td {
        padding: 14px 6px;
        font-size: 14px
    }

    .yg-td-num,
    .yg-td-date {
        font-size: 12px
    }

    .yg-subject {
        font-size: 14px
    }
}


/* =========================================================
   팝업창 관리
   ========================================================= */
.yg-popup-wrap .yg-popup-write-btn {
    position: static;
    display: inline-block;
    width: auto;
    height: auto;
    padding: 11px 24px;
    line-height: 1 !important;
    font-size: 15px;
    font-weight: 700;
    border-radius: 24px !important;
    border: 1px solid #00377b;
    background: #00377b;
    color: #fff !important;
    box-shadow: none;
    text-decoration: none;
}

.yg-popup-wrap .yg-popup-write-btn:hover {
    background: #002a5e;
    border-color: #002a5e;
    color: #fff !important;
}

.yg-popup-wrap .yg-popup-write-btn i {
    margin-left: 4px;
}

.yg-popup-wrap #bo_list th:nth-of-type(2),
.yg-popup-wrap #bo_list td:nth-of-type(2) {
    width: auto !important;
    text-align: inherit;
}

.yg-popup-wrap #bo_list.yg-board .yg-board-table .yg-th-subject,
.yg-popup-wrap #bo_list.yg-board .yg-board-table .yg-td-subject {
    text-align: left !important;
}

.yg-popup-wrap .yg-popup-table col.yg-col-subject {
    width: auto;
}

.yg-popup-wrap .yg-popup-table col.yg-col-date {
    width: 220px;
}

.yg-popup-wrap #bo_list.yg-board .yg-board-table .yg-th-date,
.yg-popup-wrap #bo_list.yg-board .yg-board-table .yg-td-date {
    width: 220px !important;
    max-width: none;
    min-width: 200px;
    text-align: center !important;
    white-space: nowrap;
    overflow: visible;
}

.yg-popup-wrap #bo_list.yg-board .yg-board-table .yg-th-view,
.yg-popup-wrap #bo_list.yg-board .yg-board-table .yg-td-view {
    width: 100px !important;
    max-width: 100px;
    min-width: 100px;
    text-align: center !important;
}

.yg-popup-wrap .yg-popup-table col.yg-col-view {
    width: 100px;
}

.yg-popup-view-badge {
    display: inline-block;
    min-width: 52px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef0f4;
    color: #888;
    font-size: 13px;
    font-weight: 600;
}

.yg-popup-view-badge.is-show {
    background: #e8f0fb;
    color: #00377b;
}

.yg-popup-form-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.yg-popup-back {
    flex-shrink: 0;
    color: #555;
    font-size: 14px;
    text-decoration: none;
}

.yg-popup-back:hover {
    color: #00377b;
}

.yg-popup-form-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #222;
}

.yg-popup-set {
    max-width: 100%;
}

.yg-popup-set-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
}

.yg-popup-set-title {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    color: #222;
    letter-spacing: -0.02em;
}

.yg-popup-add-btn {
    flex-shrink: 0;
    min-width: 120px;
    height: 42px;
    padding: 0 18px;
    border: 1px solid #00377b;
    border-radius: 6px;
    background: #00377b;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.yg-popup-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.yg-popup-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px 0;
    border-top: 1px solid #eceef2;
}

.yg-popup-item:last-child {
    border-bottom: 1px solid #eceef2;
}

.yg-popup-uploads {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
}

.yg-popup-upload {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    min-height: 200px;
    border: 1px solid #e3e6eb;
    border-radius: 8px;
    background: #f3f4f6;
    overflow: hidden;
    cursor: pointer;
}

.yg-popup-upload--pc,
.yg-popup-upload--mo {
    max-height: none;
}

.yg-popup-file {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.yg-popup-upload-guide {
    position: relative;
    z-index: 1;
    text-align: center;
    pointer-events: none;
}

.yg-popup-upload-label {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.yg-popup-upload-size {
    margin: 0;
    font-size: 12px;
    color: #888;
}

.yg-popup-upload-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-top: 14px;
    border-radius: 50%;
    background: #00377b;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    font-weight: 300;
}

.yg-popup-upload img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yg-popup-upload.has-image .yg-popup-upload-guide {
    position: absolute;
    right: 10px;
    bottom: 10px;
    margin: 0;
}

.yg-popup-upload.has-image .yg-popup-upload-icon {
    width: 36px;
    height: 36px;
    margin-top: 0;
    font-size: 22px;
    opacity: 0.92;
}

.yg-popup-upload.has-image .yg-popup-upload-label,
.yg-popup-upload.has-image .yg-popup-upload-size {
    display: none;
}

.yg-popup-upload-remove {
    display: none;
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.yg-popup-upload.has-image .yg-popup-upload-remove {
    display: inline-flex;
}

.yg-popup-upload-remove:hover {
    background: rgba(192, 57, 43, 0.92);
}

.yg-popup-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.yg-popup-image-hint {
    margin: 0;
    padding: 10px 14px;
    border-radius: 6px;
    background: #f7f9fc;
    border: 1px solid #e3e9f2;
    color: #5a6472;
    font-size: 13px;
    line-height: 1.5;
}

.yg-popup-field {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    align-items: stretch;
    min-height: 52px;
    border: 1px solid #e3e6eb;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    width: 100%;
}

.yg-popup-field-label {
    display: flex;
    align-items: center;
    align-self: stretch;
    padding: 0 16px;
    background: #f3f4f6;
    color: #555;
    font-size: 14px;
    font-weight: 500;
}

.yg-popup-field-body {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 8px 12px;
}

.yg-popup-input {
    width: 100%;
    min-width: 0;
    height: 36px;
    padding: 0 10px;
    border: 0;
    background: transparent;
    color: #222;
    font-size: 14px;
}

.yg-popup-input:focus {
    outline: none;
}

.yg-popup-input--sort {
    max-width: 72px;
}

.yg-popup-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    color: #555;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
}

.yg-popup-check input {
    margin: 0;
}

.yg-popup-field--term .yg-popup-term-body {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.yg-popup-term-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 200px;
}

.yg-popup-term-label {
    flex-shrink: 0;
    width: 64px;
    font-size: 13px;
    color: #666;
}

.yg-popup-term-item .yg-popup-input {
    flex: 1;
    border: 1px solid #e3e6eb;
    border-radius: 4px;
    background: #fff;
    padding: 0 10px;
}

.yg-popup-field--meta {
    grid-template-columns: 1fr;
    padding: 12px 16px;
    background: #fff;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
}

.yg-popup-field--meta .yg-popup-field-label {
    display: inline-flex;
    width: auto;
    padding: 0;
    background: transparent;
    white-space: nowrap;
}

.yg-popup-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.yg-popup-meta .yg-popup-field-label {
    width: auto;
    padding: 0;
    background: transparent;
    white-space: nowrap;
}

.yg-popup-select {
    min-width: 100px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #d8dce3;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 14px;
}

.yg-popup-meta--action {
    margin-left: auto;
    gap: 8px;
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
}

.yg-popup-wrap .yg-popup-submit,
.yg-popup-wrap button.yg-popup-submit {
    min-width: 0;
    flex: 1 1 auto;
    width: 100%;
    height: 42px;
    padding: 0 18px;
    border: 1px solid #00377b !important;
    border-radius: 6px;
    background: #00377b !important;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.yg-popup-wrap .yg-popup-submit:hover,
.yg-popup-wrap button.yg-popup-submit:hover {
    background: #002a5e !important;
    border-color: #002a5e !important;
    color: #fff !important;
}

.yg-popup-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid #e3e6eb;
    border-radius: 6px;
    background: #fff;
    color: #888;
    font-size: 18px;
    cursor: pointer;
}

.yg-popup-delete:hover {
    color: #c0392b;
    border-color: #e8b4b0;
}

/* 팝업 하단 버튼 입력 */
.yg-popup-field--buttons {
    align-items: stretch;
}

.yg-popup-field--buttons .yg-popup-field-label {
    align-self: stretch;
}

.yg-popup-btn-body {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
}

.yg-popup-btn-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.yg-popup-btn-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 44px 36px;
    gap: 8px;
    align-items: center;
}

.yg-popup-btn-color {
    width: 44px;
    height: 36px;
    padding: 2px;
    border: 1px solid #e3e6eb;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    box-sizing: border-box;
}

.yg-popup-btn-row .yg-popup-input {
    border: 1px solid #e3e6eb;
    border-radius: 4px;
    background: #fff;
    padding: 0 10px;
}

.yg-popup-btn-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #e3e6eb;
    border-radius: 4px;
    background: #fff;
    color: #888;
    cursor: pointer;
}

.yg-popup-btn-remove:hover {
    color: #c0392b;
    border-color: #e8b4b0;
}

.yg-popup-btn-add {
    align-self: flex-start;
    height: 36px;
    padding: 0 14px;
    border: 1px dashed #00377b;
    border-radius: 6px;
    background: #f7f9fc;
    color: #00377b;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.yg-popup-btn-add:hover {
    background: #eef3f9;
}

.yg-popup-btn-hint {
    margin: 0;
    font-size: 12px;
    color: #888;
    line-height: 1.5;
}

@media (max-width: 992px) {
    .yg-popup-upload--mo {
        max-height: none;
    }
}

@media (max-width: 768px) {
    .yg-popup-form-head {
        flex-wrap: wrap;
        margin-bottom: 18px;
    }

    .yg-popup-form-title {
        font-size: 18px;
    }

    .yg-popup-set-head {
        margin-bottom: 20px;
    }

    .yg-popup-set-title {
        font-size: 22px;
    }

    .yg-popup-uploads {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .yg-popup-upload {
        height: 160px;
        min-height: 160px;
    }

    .yg-popup-field {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .yg-popup-field-label {
        padding: 0 10px;
        font-size: 13px;
    }

    .yg-popup-field--link .yg-popup-field-body {
        flex-wrap: wrap;
    }

    .yg-popup-field--term .yg-popup-term-body {
        flex-direction: column;
        align-items: stretch;
    }

    .yg-popup-term-item {
        flex: 1 1 auto;
    }

    .yg-popup-field--meta {
        flex-wrap: wrap;
        gap: 10px;
    }

    .yg-popup-meta--action {
        margin-left: 0;
        width: 100%;
    }

    .yg-popup-wrap .yg-popup-submit,
    .yg-popup-wrap button.yg-popup-submit {
        flex: 1;
    }

    .yg-popup-btn-row {
        grid-template-columns: 1fr 44px;
    }

    .yg-popup-btn-title {
        grid-column: 1 / -1;
    }

    .yg-popup-btn-value {
        grid-column: 1 / 3;
    }

    .yg-popup-btn-remove {
        width: 100%;
        height: 32px;
    }

    .yg-popup-wrap #bo_list.yg-board {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .yg-popup-wrap .yg-popup-table {
        min-width: 420px;
    }

    .yg-popup-wrap .yg-popup-table col.yg-col-num {
        width: 40px;
    }

    .yg-popup-wrap #bo_list.yg-board .yg-board-table .yg-th-num,
    .yg-popup-wrap #bo_list.yg-board .yg-board-table .yg-td-num {
        width: 40px !important;
        max-width: 40px;
        min-width: 40px;
        padding-left: 4px;
        padding-right: 4px;
    }

    .yg-popup-wrap .yg-popup-table col.yg-col-date {
        width: 200px;
    }

    .yg-popup-wrap #bo_list.yg-board .yg-board-table .yg-th-date,
    .yg-popup-wrap #bo_list.yg-board .yg-board-table .yg-td-date {
        width: 200px !important;
        max-width: none;
        min-width: 200px;
        font-size: 11px;
        overflow: visible;
    }

    .yg-popup-wrap #bo_list.yg-board .yg-board-table .yg-th-view,
    .yg-popup-wrap #bo_list.yg-board .yg-board-table .yg-td-view {
        width: 72px !important;
        max-width: 72px;
        min-width: 72px;
    }

    .yg-popup-wrap .yg-popup-table col.yg-col-view {
        width: 72px;
    }
}

/* =========================================================
   메인 팝업 레이어
   ========================================================= */
.yg-main-popup {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.yg-main-popup.is-open {
    display: flex;
}

.yg-main-popup__dim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.yg-main-popup__window {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 700px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.yg-main-popup__x {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #111;
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
}

.yg-main-popup__x:hover {
    color: #000;
}

.yg-main-popup__body {
    position: relative;
    background: #fff;
}

.yg-main-popup__swiper,
.yg-main-popup__slide--single {
    width: 100%;
}

.yg-main-popup__link {
    display: block;
    line-height: 0;
}

.yg-main-popup__link img {
    display: block;
    width: 100%;
    height: auto;
}

.yg-main-popup__slide-inner {
    display: flex;
    flex-direction: column;
}

.yg-main-popup__btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px 14px;
    background: #fff;
    border-top: 1px solid #eceef2;
}

.yg-main-popup__btn {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    background: #00377b;
    color: #fff !important;
    text-align: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    box-sizing: border-box;
}

.yg-main-popup__btn:not(.yg-main-popup__btn--custom):hover {
    background: #002a5e;
    color: #fff !important;
}

.yg-main-popup__btn--custom:hover {
    filter: brightness(0.9);
    color: #fff !important;
}

.yg-main-popup__btn--disabled {
    background: #cfd5df;
    cursor: default;
}

.yg-main-popup__pagination {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.yg-main-popup__pagination .swiper-pagination-bullet {
    width: 28px;
    height: 28px;
    margin: 0 !important;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
    color: #333;
    font-size: 12px;
    line-height: 28px;
    text-align: center;
    opacity: 1;
}

.yg-main-popup__pagination .swiper-pagination-bullet-active {
    background: #243c7a;
    color: #fff;
}

.yg-main-popup__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: #111;
    color: #fff;
}

.yg-main-popup__reject {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
}

.yg-main-popup__reject input {
    margin: 0;
}

.yg-main-popup__close {
    flex-shrink: 0;
    min-width: 72px;
    height: 34px;
    padding: 0 14px;
    border: 0;
    border-radius: 4px;
    background: #393939;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .yg-main-popup {
        align-items: center;
        padding: 0 20px;
    }

    .yg-main-popup__window {
        max-width: 100%;
        width: 100%;
        border-radius: 8px;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
    }

    .yg-main-popup__foot {
        padding: 12px 14px;
    }
}