<style type="text/css">
.font9pt { font-size: 9pt; line-height: normal; }
.font9ptBold { font-size: 9pt; line-height: normal; color:#ffffff; font-weight: bold; }

/* ✅ 평균가격표용 iframe (작은 팝업) */
.iframe-wrapper {
    display: none;
    position: fixed;
    top: 150px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    height: 440px;
    background: white;
    border: 2px solid #ccc;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 99999;
    overflow: hidden;
}

/* ✅ 가로보기에서 popup 위치 조정 */
@media screen and (orientation: landscape) and (max-width: 1024px) {
    .iframe-wrapper {
        top: 10px;
        height: 90vh;
    }
}

/* ✅ 전체화면 상세정보 iframe */
.iframe-fullscreen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: white;
    border: none;
    box-shadow: none;
    z-index: 100000;
}

/* 헤더 */
.iframe-header {
    background: #333;
    color: white;
    padding: 10px;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 닫기 버튼 */
.iframe-header button {
    background: #666666;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 14px;
	width: 70px;
}
.iframe-header button:hover {
    background: darkred;
}

/* ✅ 모든 iframe-wrapper 내부 iframe 스타일 공통 */
.iframe-wrapper iframe,
.iframe-fullscreen iframe {
    width: 100%;
    height: calc(100% - 40px); /* 헤더 제외 */
    display: block;
    border: none;
}

/* 좌우 스크롤 힌트 */
.iframe-scroll-hint {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #666666;
    background: rgba(255, 255, 255, 0.85);
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 100000;
    pointer-events: none;
    animation: pulseArrow 1.2s infinite;
    white-space: nowrap;
}

.iframe-scroll-hint.left {
    left: 5px;
    animation-name: pulseLeft;
}

.iframe-scroll-hint.right {
    right: 5px;
    animation-name: pulseRight;
}

@keyframes pulseLeft {
    0%, 100% { opacity: 0.8; transform: translateY(-50%) translateX(0); }
    50%      { opacity: 1;   transform: translateY(-50%) translateX(-5px); }
}

@keyframes pulseRight {
    0%, 100% { opacity: 0.8; transform: translateY(-50%) translateX(0); }
    50%      { opacity: 1;   transform: translateY(-50%) translateX(5px); }
}

</style>