/**
 * adpick_common.css
 * - Tailwind(preflight:false)와 병행하는 공통 UI (전 페이지 로드)
 * - 여러 서비스에서 재사용하는 것만
 * - 페이지 전용 leftover는 adpick_snsmedia.css / adpick_quest.css / adpick_ranking.css 등
 * - adpick.common.css(구 통짜 공통)와 다른 파일
 */

/* ========== 전체폭 셸 ==========
 * body에 .layout-fullwidth 부여 (layout.php)
 * --box: content_box 좌우 3% + 본문 1430px
 * --flush: 퀘스트용 패딩 제거
 * --title: depth3/타이틀 하단 여백 40px
 */
.layout-fullwidth .content-inner {
	padding-top: 0;
	max-width: none;
}

.layout-fullwidth.layout-fullwidth--box .content_box {
	padding-left: 3%;
	padding-right: 3%;
}

.layout-fullwidth.layout-fullwidth--box .content_box .content_inner {
	max-width: 1430px;
	margin-left: auto;
	margin-right: auto;
}

/* 퀘스트: 좌우·하단 패딩 제거 + content_box 폭 */
.layout-fullwidth.layout-fullwidth--flush .content-inner {
	padding-left: 0;
	padding-right: 0;
	padding-bottom: 0;
}
.layout-fullwidth.layout-fullwidth--flush .content_box {
	max-width: 1430px;
	margin-left: auto;
	margin-right: auto;
}

/* 캠페인/리뷰 목록 본문폭 */
.layout-fullwidth .page-offer.campaigns,
.layout-fullwidth .page-offer {
	max-width: 1430px;
	margin-left: auto;
	margin-right: auto;
}

.layout-fullwidth.layout-fullwidth--title .page-title-wrap {
	margin-bottom: 40px;
}

/* 링크 없는 배너 (오타 클래스명 유지) */
.banners a.defalut,
a.defalut {
	pointer-events: none;
}

/* ========== 공통 검색 인풋 ========== */
.adpick-search {
    width: 100%;
    background-color: #fff;
    padding: 0 20px 15px;
    box-sizing: border-box;
}
.adpick-search .adpick-search__inner {
    max-width: 100%;
    margin: 0 auto;
}
.adpick-search .adpick-search__box {
    position: relative;
    height: 40px;
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 5px;
    border: solid 2px #000;
    background-color: #fff;
    box-sizing: border-box;
}
.adpick-search .adpick-search__btn {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    width: 42px;
    height: 100%;
    padding: 0;
    border: 0;
    cursor: pointer;
    background-color: transparent;
    background-image: url("https://d2nkkkpf88oxbk.cloudfront.net/static/v3.adpick/images/icons/icon_zoom_thick.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
    text-indent: -9999px;
    overflow: hidden;
}
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
    .adpick-search .adpick-search__btn {
        background-image: url("https://d2nkkkpf88oxbk.cloudfront.net/static/v3.adpick/images/icons/icon_zoom_thick@2x.png");
    }
}
@media (-webkit-min-device-pixel-ratio: 3), (min-resolution: 3dppx) {
    .adpick-search .adpick-search__btn {
        background-image: url("https://d2nkkkpf88oxbk.cloudfront.net/static/v3.adpick/images/icons/icon_zoom_thick@3x.png");
    }
}
/* .keyword 훅 유지 — 공통 input{font-weight:400} 상쇄 (구 .guide-search.portal .keyword) */
.adpick-search .keyword-form .keyword,
.adpick-search .adpick-search__input {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0 42px 0 10px;
    border: 0;
    outline: none;
    box-sizing: border-box;
    background-color: #fff;
    font-size: 1em;
    font-weight: bold !important;
    text-align: left;
    color: #1b2c37;
    -webkit-appearance: none;
    appearance: none;
}
.adpick-search .keyword-form .keyword::placeholder,
.adpick-search .adpick-search__input::placeholder {
    color: #aab4c9;
    font-size: 12px;
    font-weight: bold !important;
}
/* search type 기본 clear/cancel 아이콘 정리 */
.adpick-search .adpick-search__input::-webkit-search-decoration,
.adpick-search .adpick-search__input::-webkit-search-cancel-button,
.adpick-search .adpick-search__input::-webkit-search-results-button,
.adpick-search .adpick-search__input::-webkit-search-results-decoration {
    display: none;
}

@media screen and (min-width: 768px) {
    .adpick-search {
        padding: 20px;
    }
}
@media screen and (min-width: 1024px) {
    .adpick-search .adpick-search__box {
        height: 50px;
    }
    .adpick-search .keyword-form .keyword,
    .adpick-search .adpick-search__input {
        font-size: 16px;
    }
    .adpick-search .keyword-form .keyword::placeholder,
    .adpick-search .adpick-search__input::placeholder {
        font-size: 14px;
    }
}

/* ========== 쇼핑메이트 캠페인 홍보 필수 준수 사항 팝업 (v3/inc_shopping_promo_notice_popup.php) ========== */
.modal-promo-notice .promo-notice-alert {padding: 12px 14px; border-radius: 6px; background: #fdecea; color: #e03131; font-weight: 600; line-height: 1.5; word-break: keep-all;}
.modal-promo-notice .promo-notice-list {margin: 16px 0; padding-left: 0; list-style: none; counter-reset: promoNotice;}
.modal-promo-notice .promo-notice-list li {position: relative; padding-left: 20px; margin-bottom: 10px; color: #222; font-weight: 600; line-height: 1.5; word-break: keep-all; counter-increment: promoNotice;}
.modal-promo-notice .promo-notice-list li::before {content: counter(promoNotice) "."; position: absolute; left: 0; top: 0;}
.modal-promo-notice .promo-notice-list .sub {display: block; margin-top: 2px; color: #555; font-weight: 400; font-size: 0.92em;}
.modal-promo-notice .promo-notice-info {margin-bottom: 1.5em; padding: 12px 14px; border-radius: 6px; background: #e6f7f0; color: #0f9d74; line-height: 1.6; word-break: keep-all;}

/* ========== 스켈레톤 (공통) ========== */
.skeleton {
    background-image: linear-gradient(to right, #f2f5fd, #fff 49%, #f2f5fd);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    min-height: 52px;
    border-radius: 5px;
}
