/**
 * 네이버 SA광고
 */
:root {
    --ad-text-color-primary: #000;
    --ad-text-color-secondary: #605D64;
    --ad-text-color-tertiary: #909090;
    --ad-text-color-accent: #12C;
    --ad-text-color-info: #49454F;
    --ad-border-color: #E9EAED;
    --ad-dot-color:  #D9D9D9;
    --ad-font-family: Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

#naver-ad-wrapper {
    display: none;
}

#naver-ad-container {
    display: flex;
    box-sizing: border-box;
    flex-direction: column;
    width: 1100px;
    margin: 0 auto;
    padding: 13px 10px;
    gap: 10px;
}

.emph_g {
    font-weight: 700;
}

.hr {
    height: 0.5px;
    align-self: stretch;
    background: var(--ad-border-color);
}

.naver_ad_header {
    display: flex;
    position: relative;
    align-items: center;
    gap: 12px;
    align-self: stretch;
}

.naver_ad_header .search_keyword {
    color: #36343B;
    font-size: 14px;
    font-weight: 700;
    line-height: 22px; /* 157.143% */
    letter-spacing: -0.112px;
}

.naver_ad_header .ad_mark_wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 500;
    line-height: 22px;
    letter-spacing: -0.088px;
    color: rgba(60, 60, 67, 0.60);
}

.naver_ad_header .ad_mark_wrap .ico_info {
    display: inline-block;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    background: url(//t1.daumcdn.net/cafe_image/app/ad/ico_info.png) no-repeat center;
    background-size: 14px 14px;
    cursor: pointer;
}

.naver_ad {
    font-family: var(--ad-font-family);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.naver_ad .box_naver_ad {
    display: flex;
    gap: 20px;
    height: 76px;
}

.naver_ad .naver_ad_img {
    width: 76px;
    height: 76px;
    flex-basis: 76px;
    flex-shrink: 0;
    flex-grow: 0;
    border: 1px solid var(--ad-border-color);
    box-sizing: border-box;
}

.naver_ad .naver_ad_img a {
    display: block;
    width: 100%;
    height: 100%;
}

.naver_ad .img_ad {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.naver_ad .naver_ad_content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-self: stretch;
    flex: 1 0 0;
    padding-top: 5px;
}

.naver_ad .tit_wrap {
    display: flex;
    height: 16px;
    align-items: center;
    gap: 2px;
    flex: 1 0 0;
}

.naver_ad .cont_body {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    align-self: stretch;
}

.naver_ad .cont_ad {
    flex: 1;
}

.naver_ad .txt_url {
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    line-height: 20px;
    letter-spacing: -0.2px;
    color: var(--ad-text-color-tertiary);
    text-decoration: none;
}

.naver_ad .txt_url::before,
.naver_ad .medical_no::before {
    content: '';
    display: inline-block;
    width: 2px;
    height: 2px;
    margin-right: 2px;
    background-color: var(--ad-dot-color);
    border-radius: 50%;
    vertical-align: middle;
}

.naver_ad .tit_naver_ad {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.naver_ad .tit_naver_ad a {
    color: var(--ad-text-color-accent);
    font-size: 13px;
    font-weight: 500;
    line-height: 22px; /* 169.231% */
    letter-spacing: -0.104px;
    text-decoration: none;
}

.naver_ad p.desc_naver_ad {
    display: inline-block;
}

.naver_ad .desc_naver_ad a {
    color: var(--ad-text-color-primary);
    text-decoration: none;
}

.naver_ad .desc_text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    font-size: 12px;
    line-height: 18px; /* 150% */
    letter-spacing: -0.096px;
}

.naver_ad .medical_no {
    display: inline-block;
    overflow: hidden;
    color: #909090;
    text-overflow: ellipsis;
    font-size: 12px;
    line-height: 20px; /* 166.667% */
    letter-spacing: -0.2px;
}

.naver_ad .profile_wrap {
    display: flex;
    box-sizing: border-box;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    width: 16px;
    height: 16px;
    margin-right: 2px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(0, 0, 0, 0.04);
    text-decoration: none;
}

.naver_ad .ico_profile {
    display: block;
    width: 10px;
    height: 10px;
    object-fit: contain;
    border-radius: 50%;
}

/* 광고 프로필 이미지일 때는 전체 영역 채우기 */
.naver_ad .ico_profile.is-profile {
    width: 16px;
    height: 16px;
    object-fit: cover;
}

.naver_ad .tit_headline {
    position: relative;
    flex-shrink: 1;
    min-width: 0;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
    font-size: 12px;
    color: var(--ad-text-color-primary);
    text-decoration: none;
    letter-spacing: -0.2px;
}

/* 광고 정보 팝업 */
.info_desc {
    display: none;
    box-sizing: border-box;
    position: absolute;
    top: calc(100% + 2px);
    left: calc(100% - 10px);
    border: 1px solid var(--ad-border-color);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 331px;
    height: 140px;
    padding: 12px 14px;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    z-index: 100;
}

.info_desc.show {
    display: block;
}

.info_desc .info_desc_box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    align-self: stretch;
}

.info_desc p,
.info_desc a {
    font-size: 13px;
    font-weight: 500;
    line-height: 22px; /* 160% */
}

.info_desc p {
    color: var(--ad-text-color-info);
}

.info_desc a {
    color: #0089FF;
    text-decoration: none;
}

.info_desc .btn_close_info {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 24px;
    height: 24px;
    padding: 0;
    flex-shrink: 0;
    background: url(//t1.daumcdn.net/cafe_image/app/ad/ico_close.png) no-repeat center / 18px 18px;
    border: none;
    cursor: pointer;
}