/* aipharm_banner_style.css */

/* --- AI팜 플로팅 배너 스타일 --- */
/* wrap: 배너 이미지 + 닫기옵션 바를 함께 고정 배치하는 컨테이너 */
.floating-banner-wrap {
    position: fixed;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    z-index: 99;
}

.floating-banner {
    position: relative;
    flex: 0 0 auto;
    background-color: #ffffff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid #ececf0;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
    overflow: hidden;
}

.floating-banner-wrap:hover .floating-banner {
    transform: scale(1.03);
}

.floating-banner-link {
    position: absolute;
    inset: 0;
    display: block;
}

/* 배너 닫기(X) 버튼 */
.floating-banner-close {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    padding: 0;
    line-height: 18px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    z-index: 3;
}
.floating-banner-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* "1일간 보지 않기" 옵션 바 */
.floating-banner-hide-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex: 0 0 auto;
    font-size: .68rem;
    color: #52565e;
    background: #ffffff;
    border: 1px solid #ececf0;
    border-top: none;
    border-radius: 0 0 11px 11px;
    padding: 4px 6px;
    cursor: pointer;
    user-select: none;
}
.floating-banner-hide-option input {
    cursor: pointer;
}

/* 배너 문구(캡션) 오버레이 */
.floating-banner-caption {
    position: absolute;
    left: 0;
    right: 0;
    padding: 6px 8px;
    font-size: .78rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
    word-break: keep-all;
    pointer-events: none;
}
.floating-banner-caption.top {
    top: 0;
    border-radius: 11px 11px 0 0;
}
.floating-banner-caption.bottom {
    bottom: 0;
}


/* 화면이 1360px보다 좁아지면 배너 숨기기 (1120px 컨테이너 + 배너 너비 + 여백) */
@media (max-width: 1360px) {
    .floating-banner-wrap {
        display: none;
    }
}

