@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

/* 사이트 공통 스타일 (Tailwind 로 부족한 부분만 작성) */
body {
    font-family: 'Pretendard Variable', 'Pretendard', 'Malgun Gothic', sans-serif;
}

/* ─── 로고 띠 (끝없이 흐름) ───
   트랙 안에 같은 목록을 두 번 넣고 -50% 만큼 이동 → 이음매 없이 반복 */
.marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee var(--marquee-duration, 40s) linear infinite;
}
.marquee.reverse .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }   /* 마우스 올리면 멈춤 */

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* 움직임 줄이기 설정한 사용자는 멈춘 상태로 */
@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
}

/* ─── 문서 페이지 (이용약관·개인정보처리방침) ─── */
.doc h2 { font-size: 1.125rem; font-weight: 700; color: #000; margin: 3rem 0 1rem; padding-bottom: .5rem; border-bottom: 1px solid #e5e7eb; }
.doc h3 { font-weight: 700; color: #000; margin: 1.75rem 0 .5rem; scroll-margin-top: 1rem; }
.doc p, .doc li, .doc td, .doc th { font-size: .9375rem; line-height: 1.8; color: #374151; }
.doc ol { list-style: decimal; padding-left: 1.5rem; margin: .25rem 0; }
.doc ol ol { list-style: none; padding-left: .75rem; }
.doc ul { list-style: disc; padding-left: 1.5rem; margin: .25rem 0; }
.doc table { width: 100%; border-collapse: collapse; margin: .75rem 0; }
.doc th, .doc td { border: 1px solid #e5e7eb; padding: .5rem .75rem; text-align: left; vertical-align: top; font-size: .875rem; }
.doc th { background: #f9fafb; color: #111827; font-weight: 600; }

/* ─── 주문 화면 견적서 ───
   본문(max-w-6xl = 1152px) 밖 오른쪽에 위쪽 고정. 헤더(65px, 아래선 포함) 아래 25px - 이미지 윗선과 같은 높이.
   Tailwind 클래스(mt-10, max-w-md)보다 우선해야 해서 !important
   자리가 나는 넓은 화면(1720px 이상)에서만 - 그 밖에는 본문 아래 일반 배치 */
@media (min-width: 1720px) {
    .quote-float {
        position: fixed;
        z-index: 50;              /* 다른 요소보다 항상 위 */
        top: 90px;
        left: calc(50% + 576px + 24px);
        width: 260px;
        max-width: none !important;
        margin-top: 0 !important;
        max-height: calc(100vh - 105px);
        overflow-y: auto;
    }
}
