/* ================================================================
   Rental Package — Front CSS
   ================================================================ */
:root {
    --bs-font-sans-serif: 'Plus Jakarta Sans', 'Noto Sans KR', sans-serif;
    --bs-font-serif: 'Noto Serif KR', serif;
    --bs-font-monospace: 'JetBrains Mono', 'Noto Sans KR', monospace;
    --bs-body-font-family: var(--bs-font-sans-serif);
}

/* 브레드크럼 구분자: "/" → ">" */
.breadcrumb {
    --bs-breadcrumb-divider: '>';
}

a {
    text-decoration: none;
    /* text-underline-offset: 0.1875em; */
    /* text-underline-offset: 0.25em; */
    text-underline-offset: 0.25rem;
    text-decoration-thickness: 1px;
}
a:not(.btn):hover {
    text-decoration: underline;
    /* text-decoration-color: rgba(var(--bs-link-hover-color-rgb), var(--bs-link-hover-opacity, 0.75)); */
    text-decoration-thickness: 1px;
}

/* ── 상품 카드 (레거시 포팅) ─────────────────────────── */
.list-item-box {
    --bs-card-border-width: 0;
    --bs-card-border-radius: 0;
    height: 100%;
}

.list-item-box .goods-list-image {
    --bs-card-inner-border-radius: 0;
    border: 1px solid var(--bs-border-color);
}

.list-item-box .goods-link {
    background-color: var(--bs-light, '#fff');
}

.list-item-box .goods-image {
    --bs-border-radius: 0;
    transition: transform 0.25s;
}

.list-item-box .goods-list-content {
    position: relative;
    font-size: 0.875rem;
    letter-spacing: -0.025em;
}

.list-item-box .goods-list-content dl,
.list-item-box .goods-list-content dt,
.list-item-box .goods-list-content dd {
    margin: 0;
    padding: 0;
    font-weight: inherit;
    line-height: 1.25;
}

.list-item-box .goods-name {
    font-size: 1.125rem;
    font-weight: 300;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    line-height: 1.375;
    margin: 0;
    padding-right: 2rem;
    min-height: calc(1.375em * 2);
}

.list-item-box .goods-name a:hover {
    color: var(--bs-body-emphasis);
}

.list-item-box .price-box {
    display: grid;
    align-content: start;
    gap: 0.125rem;
    margin-bottom: 0.5rem;
    line-height: 1.25;
}

.list-item-box .price-box dl {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-item-box .price-box dt::before {
    font-family: "bootstrap-icons";
    display: inline-block;
    vertical-align: bottom;
    margin-right: 0.5em;
}

.list-item-box .current-price dt::before { content: "\F50F"; }
.list-item-box .benefit-price dt::before { content: "\F2DC"; }
.list-item-box .point-price dt::before { content: "\F70C"; }

.list-item-box .price-box dd {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.list-item-box .price-box dd .price {
    font-size: 1.125rem;
    font-weight: 700;
}

.list-item-box .price-box .emphasis .price {
    color: var(--bs-primary);
    font-weight: 900;
    font-size: 1.25rem;
}

.list-item-box .price-box .diminish dd {
    color: var(--bs-tertiary-color);
}

.list-item-box .price-box .diminish dd::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    display: block;
    height: 1px;
    background: currentColor;
}

.list-item-box .point-price dd > span {
    display: flex;
    gap: 0.375rem;
    align-items: center;
}

.list-item-box .point-price dd > span em {
    font-style: normal;
    color: var(--bs-secondary-color);
}

.list-item-box .point-price dd > span b {
    font-size: 1rem;
}

.list-item-box .goods-review {
    display: flex;
    gap: 0;
    justify-content: flex-start;
    align-items: center;
    margin-top: 0.25rem;
}

.list-item-box .goods-review-score,
.list-item-box .goods-review-count {
    display: flex;
    gap: 0.25rem;
    justify-content: flex-start;
    align-items: center;
}

.list-item-box .goods-review-score .bi {
    color: var(--bs-warning);
}

.list-item-box .goods-review-count {
    position: relative;
    padding-left: 1.25rem;
    color: var(--bs-tertiary-color);
}

.list-item-box .goods-review-count::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0.75rem;
    width: 3px;
    height: 3px;
    margin: auto 0;
    border-radius: 50%;
    background-color: rgba(var(--bs-tertiary-color-rgb), 0.5);
    transform: translateX(-50%);
    content: "";
}

.list-item-box .goods-wish {
    display: flex;
    width: 1.5rem;
    height: 1.5rem;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
    transition: transform 0.25s ease;
    border: 0;
    background: none;
}

.list-item-box .goods-wish .bi {
    font-size: 1.125rem;
}

.list-item-box .goods-wish.active {
    color: var(--bs-danger);
}

.list-item-box .goods-wish.active .bi-suit-heart::before {
    content: "\F59D";
}

.list-item-box .goods-wish:active {
    transform: scale(1.25);
}

.goods-wish.active {
    color: var(--bs-danger);
}

.goods-wish.active .bi-suit-heart::before {
    content: "\F59D";
}

/* ── 상품 상세 위시 버튼 ──────────────────────────────── */

.goods-buttons .goods-wish {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    background: none;
    cursor: pointer;
    color: var(--bs-secondary-color);
    font-size: 1.125rem;
    transition: color 0.15s, border-color 0.15s;
    position: relative;
    overflow: visible;
}

.goods-buttons .goods-wish.active {
    color: var(--bs-danger);
    border-color: var(--bs-danger);
}

.goods-buttons .goods-wish:active {
    transform: scale(1.1);
}

/* ── 상품 상세 (레거시 포팅) ──────────────────────────── */

/* 상품 타이틀 */
.goods-title {
    position: relative;
    margin-bottom: 2rem;
}

.goods-title .goods-name {
    margin-bottom: 0.75rem;
    font-size: 2.25rem;
    font-weight: 200;
    letter-spacing: -0.05rem;
    line-height: 1.0625;
    color: var(--bs-emphasis-color);
    word-break: keep-all;
}

.goods-title .goods-meta {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-start;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.25;
    color: var(--bs-secondary-color);
}

.goods-title .brand-name {
    flex-shrink: 0;
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--bs-border-radius);
    background-color: var(--bs-body-color);
    color: var(--bs-body-bg);
    font-size: 0.75em;
    white-space: nowrap;
    text-transform: uppercase;
}

.goods-title .model-name {
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.goods-title .goods-score {
    flex-shrink: 0;
    margin-left: auto;
}

/* 상품 이미지 (Swiper 갤러리) */
.goods-image img {
    background-color: var(--bs-white, '#fff');
}

.goods-image .sticky-top {
    top: calc(var(--header-height, 80px) + 1rem);
}

.goods-detail-tab-nav.sticky-top {
    top: var(--header-height, 80px);
}

.goods-image .goods-image-container,
.goods-image .goods-thumb-container {
    user-select: none;
}

.goods-image .goods-image-container {
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius-lg);
}

.goods-image .goods-thumb-container .swiper-slide {
    overflow: hidden;
    border-radius: var(--bs-border-radius-lg);
    border: 1px solid var(--bs-secondary-bg);
}

.goods-image .goods-thumb-container .swiper-slide-thumb-active:not(:has(.placeholder)) {
    border-color: var(--bs-border-color);
}

.goods-image .goods-thumb-container .swiper-slide-thumb-active img {
    opacity: 0.75;
    filter: grayscale(1);
}

.goods-image .swiper-button-prev,
.goods-image .swiper-button-next {
    --swiper-navigation-color: rgba(var(--bs-black-rgb), 0.75);
    --swiper-navigation-sides-offset: -1px;
}

.goods-image .swiper-button-prev svg,
.goods-image .swiper-button-next svg {
    fill: none;
    stroke-width: 3px;
}

.goods-image .goods-image-container .swiper-button-prev,
.goods-image .goods-image-container .swiper-button-next {
    --swiper-navigation-size: 76px;
    width: auto;
    padding: 1rem 0;
    background-color: rgba(var(--bs-white-rgb), 0.375);
    border: 1px solid rgba(var(--bs-black-rgb), 0.125);
}

.goods-image .goods-image-container .swiper-button-prev {
    border-top-right-radius: var(--bs-border-radius);
    border-bottom-right-radius: var(--bs-border-radius);
}

.goods-image .goods-image-container .swiper-button-next {
    border-top-left-radius: var(--bs-border-radius);
    border-bottom-left-radius: var(--bs-border-radius);
}

.goods-image .goods-thumb-container .swiper-button-prev,
.goods-image .goods-thumb-container .swiper-button-next {
    --swiper-navigation-size: 32px;
}

/* Swiper 초기화 전 FOUC 방지: 첫 슬라이드만 표시 */
.goods-image .goods-image-container .swiper:not(.swiper-initialized) .swiper-wrapper {
    overflow: hidden;
    height: 0;
    padding-bottom: 100%;
}
.goods-image .goods-image-container .swiper:not(.swiper-initialized) .swiper-slide:not(:first-child) {
    display: none;
}
.goods-image .goods-thumb-container .swiper:not(.swiper-initialized) .swiper-wrapper {
    overflow: hidden;
}
.goods-image .goods-thumb-container .swiper:not(.swiper-initialized) .swiper-slide:not(:first-child) {
    display: none;
}

/* 렌탈 요약 */
.rental-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
}
.rental-summary-row {
    display: flex;
    gap: 6px;
    font-size: 0.8125rem;
}
.rental-summary-row dt {
    flex-shrink: 0;
    color: var(--bs-secondary-color);
    font-weight: 400;
    white-space: nowrap;
}
.rental-summary-row dd {
    margin: 0;
    font-weight: 500;
    color: var(--bs-body-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 조건 선택 */
.condition-title {
    margin-bottom: 0.5rem;
}

/* 옵션 */
.goods-option:has(#goods-option-list:empty) {
    display: none;
}

.item-option.list-group .list-group-item:has(.form-check-input:checked) {
    --bs-list-group-bg: var(--bs-tertiary-bg);
    --bs-list-group-color: var(--bs-emphasis-color);
    transition: background-color 0.25s ease, color 0.25s ease;
    font-weight: 500;
}

.condition-option .form-check-label {
    padding: 0.625rem 1rem !important;
}

/* 렌탈 기간/관리유형 placeholder */
.item-commitment .condition-item-placeholder-btn,
.item-management .condition-item-placeholder-btn {
    flex-grow: 1;
    min-height: 2.875rem;
    background-color: var(--bs-secondary-bg);
    border-radius: var(--bs-border-radius);
    cursor: wait;
}

/* 렌탈 기간/관리유형 btn-check */
.condition-commitment .btn,
.condition-management .btn {
    --bs-btn-padding-y: 0.625rem;
    --bs-btn-bg: transparent;
    --bs-btn-border-color: rgba(var(--bs-secondary-rgb), 0.25);
    --bs-btn-active-color: var(--bs-emphasis-color);
    --bs-btn-active-bg: transparent;
    --bs-btn-active-border-color: var(--bs-emphasis-color);
}

.condition-commitment .btn-check:checked+.btn,
.condition-management .btn-check:checked+.btn {
    --bs-btn-font-weight: 500;
}

@media (max-width: 576px) {
    .item-commitment,
    .item-management {
        flex-wrap: wrap !important;
    }
    .item-commitment > *,
    .item-management > * {
        flex: 0 0 calc(50% - 0.25rem) !important;
        max-width: calc(50% - 0.25rem);
    }
}

/* 제휴 카드 선택 */
.condition-item.item-card {
    font-variant-numeric: tabular-nums;
}

.condition-item.item-card .accordion {
    --bs-accordion-btn-padding-y: 0.625rem;
}

.condition-item.item-card .accordion-collapse {
    position: relative;
}

.condition-item.item-card .accordion-collapse::before {
    content: "";
    position: absolute;
    left: var(--bs-accordion-btn-padding-x);
    right: var(--bs-accordion-btn-padding-x);
    top: 0;
    border-top: 1px solid rgba(var(--bs-secondary-bg-rgb), 0.75);
}

.condition-item.item-card .accordion-button:focus {
    --bs-accordion-active-color: var(--bs-body-color);
    --bs-accordion-active-bg: var(--bs-body-bg);
    --bs-accordion-btn-focus-box-shadow: none;
}

.condition-item.item-card .accordion-button:not(.collapsed) {
    --bs-accordion-active-color: var(--bs-body-color);
    --bs-accordion-active-bg: var(--bs-body-bg);
    --bs-accordion-border-color: transparent;
}

.condition-item.item-card .condition-card .card-discount {
    margin-left: auto;
    white-space: nowrap;
    color: var(--bs-tertiary-color);
    font-weight: 300;
}

@media (max-width: 575.98px) {
    .condition-item.item-card .condition-card .form-check-label {
        flex-wrap: wrap;
    }
    .condition-item.item-card .condition-card .card-discount {
        flex-basis: 100%;
        margin-left: 0;
        font-size: 0.875rem;
    }
}

.condition-item.item-card .condition-card .card-discount b {
    font-weight: 500;
}

.condition-item.item-card .condition-card .form-check-input:checked ~ .form-check-label .card-discount {
    color: var(--bs-body-color);
    font-weight: 400;
}

.condition-item.item-card .condition-card .form-check-input:checked ~ .form-check-label .card-discount b {
    color: var(--bs-emphasis-color);
    font-weight: 600;
}

.condition-item.item-card .card-benefit-container {
    margin: 0.125rem 0 0.5rem 1.75rem;
    flex-wrap: wrap;
}

.condition-item.item-card .condition-card-benefit .btn {
    --bs-btn-padding-x: 0.5rem;
    --bs-btn-font-size: 0.875rem;
    --bs-btn-line-height: 1.25;
    --bs-btn-border-color: var(--bs-border-color);
    --bs-btn-border-radius: var(--bs-border-radius-lg);
    --bs-btn-color: var(--bs-tertiary-color);
    --bs-btn-active-color: var(--bs-emphasis-color);
    --bs-btn-active-bg: transparent;
    --bs-btn-active-border-color: var(--bs-emphasis-color);
}

/* 요금 */
.goods-price {
    margin-top: 3rem !important;
    white-space: nowrap;
}

.goods-price dl,
.goods-price dt,
.goods-price dd {
    margin: 0;
    padding: 0;
    list-style: none;
    font-style: normal;
    font-weight: normal;
}

.goods-price dl {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.goods-price dt {
    font-size: 1.25rem;
    padding-right: 1em;
    position: relative;
    max-width: 12ch;
    overflow: hidden;
    text-overflow: ellipsis;
}

.goods-price dt::after {
    content: "\F285";
    font-family: 'bootstrap-icons';
    font-size: 0.75em;
    color: var(--bs-tertiary-color);
    display: block;
    line-height: 1;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.goods-price dd {
    font-size: 1.5rem;
    gap: 0.25em;
    justify-content: flex-start;
    align-items: center;
}

.goods-price dd .prefix,
.goods-price dd .suffix {
    font-weight: 300;
}

.goods-price dd .amount {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    font-size: 1.125em;
}

/* 프로모션 */
.goods-price .promo-info {
    margin-bottom: 0.375rem;
}

.goods-price .promo-info dl {
    color: var(--bs-primary);
}

.goods-price .promo-info dt::after {
    color: var(--bs-primary-border-subtle);
}

.goods-price .promo-info .promo-text {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-start;
    align-items: center;
    font-size: 0.875rem;
}

.goods-price .promo-info .promo-name {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 3rem;
    border: 1px solid var(--bs-primary-border-subtle);
    background-color: var(--bs-primary-bg-subtle);
    color: var(--bs-primary-text-emphasis);
    padding: 0.125rem 0.75rem;
    font-weight: 500;
}

.goods-price .promo-info .promo-name::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 75%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    animation: shine 2.5s infinite;
}

.goods-price .promo-info .promo-rate {
    position: relative;
    margin-left: auto;
    color: var(--bs-danger);
    font-size: 1.375rem;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.goods-price .promo-info .promo-rate::before {
    position: absolute;
    right: 100%;
    content: "\F124";
    font-family: 'bootstrap-icons';
}

/* 할인 */
.goods-price .discount-info {
    color: var(--bs-secondary-color);
}

/* 최종가 */
.goods-price .total-info {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--bs-border-color);
}

.goods-price .total-info dd {
    color: var(--bs-danger);
}

/* 포인트 */
.goods-price .point-info dd {
    position: relative;
    color: var(--bs-success);
}

.goods-price .point-info dd .notapp {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--bs-tertiary-color);
}

.goods-price .point-info dd .prefix {
    position: absolute;
    right: calc(100% + 0.5rem);
    overflow: hidden;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.125rem 0.75rem;
    border-radius: 3rem;
    border: 1px solid var(--bs-success-border-subtle);
    background-color: var(--bs-success-bg-subtle);
    color: var(--bs-success-text-emphasis);
    display: flex;
    justify-content: center;
    align-items: center;
}

.goods-price .point-info dd .prefix::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 75%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    animation: shine 2.5s infinite;
}

/* 포인트 디스플레이 컨트롤 */
.goods-price .point-info [data-has-point="N"] { display: flex; }
.goods-price .point-info [data-has-point="Y"] { display: none; }
.goods-price .point-info.has-point [data-has-point="N"] { display: none; }
.goods-price .point-info.has-point [data-has-point="Y"] { display: flex; }

/* 버튼 */
.goods-buttons {
    margin-top: 1rem !important;
}

.goods-buttons .btn {
    --bs-btn-padding-y: 0.75rem;
}

.goods-buttons .btn-counsel {
    flex-basis: 20%;
    --bs-btn-bg: transparent;
    --bs-btn-color: var(--bs-body-color);
}

.goods-buttons .btn-counsel[data-channel=""] {
    display: none;
}

.goods-buttons .btn-order {
    flex-basis: 0;
    font-weight: 500;
}

/* 상세 탭 */
.goods-detail-tab-menu:not(:empty) {
    background-color: rgba(var(--bs-body-bg-rgb), 1);
    border-bottom: 1px solid var(--bs-border-color);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.goods-detail-tab-menu .nav {
    flex-wrap: nowrap;
    white-space: nowrap;
}

.goods-detail-tab-menu.is-sticky {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}

.goods-detail-tab-content {
    text-align: center;
}

.goods-detail-tab-content img {
    max-width: 100%;
}

/* 탭 서머리 바 — 서머리(왼쪽) + 작성 버튼(오른쪽) 공통 레이아웃 */
.tab-summary-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

/* 탭 서머리 — AJAX 로드 전 레이아웃 보호 */
.tab-summary {
    display: flex;
    align-items: center;
    flex: 1 1 0;
    min-height: 3rem;
}

/* ── 애니메이션 ─────────────────────────────────────── */
@keyframes shine {
    0%   { left: -150%; }
    30%  { left: 150%; }
    100% { left: 150%; }
}

/* ── 장바구니 ───────────────────────────────────────── */
.rental-cart-item {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: box-shadow 0.15s;
}

.rental-cart-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ── 주문 상태 배지 ──────────────────────────────────── */
.rental-status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* ── 플로팅 주문 패널 ──────────────────────────────────── */
.fix-cart-wrapper {
    position: fixed;
    z-index: 1040;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.fix-cart-inner {
    background: var(--bs-body-bg, #fff);
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 0.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 위로가기 (상단 중앙 원형, 카드 선에 걸침) */
.fix-cart-top-btn {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 50%;
    background: var(--bs-body-bg, #fff);
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    color: var(--bs-secondary-color, #6c757d);
    font-size: 0.6875rem;
    z-index: 1;
}

.fix-cart-top-btn:hover {
    color: var(--bs-body-color);
    background: var(--bs-tertiary-bg, #f8f9fa);
}

/* 헤더 (상품명) */
.fix-cart-header {
    padding: 0.75rem 0.875rem;
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
}

.fix-cart-title {
    font-size: 0.8125rem;
    display: block;
}

.fix-cart-body {
    padding: 0.625rem 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 50vh;
    overflow-y: auto;
}

.fix-cart-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.fix-cart-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--bs-secondary-color, #6c757d);
}

.fix-cart-options .fix-cart-row + .fix-cart-row {
    margin-top: 0.25rem;
}

.fix-cart-btn-group .btn {
    --bs-btn-padding-y: 0.25rem;
    --bs-btn-padding-x: 0.5rem;
    --bs-btn-font-size: 0.75rem;
    flex-basis: 0;
    min-width: 0;
}

.fix-cart-divider {
    margin: 0.25rem 0;
    opacity: 0.15;
}

.fix-cart-footer {
    padding: 0.625rem 0.875rem;
    border-top: 1px solid var(--bs-border-color, #dee2e6);
}

/* 가격 영역 */
.fix-cart-price dl {
    margin: 0;
}

.fix-cart-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    line-height: 1.75;
}

.fix-cart-price-row dt {
    font-weight: 400;
    color: var(--bs-secondary-color, #6c757d);
}

.fix-cart-price-row dd {
    margin: 0;
}

.fix-cart-price-total {
    font-size: 0.875rem;
    font-weight: 600;
    padding-top: 0.25rem;
    border-top: 1px solid var(--bs-border-color, #dee2e6);
    margin-top: 0.25rem;
}

.fix-cart-price-total dt {
    font-weight: 600;
    color: var(--bs-body-color);
}

.fix-cart-amount {
    font-size: 1.125rem;
    margin-right: 0.125rem;
}

.fix-cart-price-point {
    font-size: 0.6875rem;
    color: var(--bs-secondary-color, #6c757d);
}

.fix-cart-price-point [data-has-point="N"] { display: inline; }
.fix-cart-price-point [data-has-point="Y"] { display: none; }
.fix-cart-price-point.has-point [data-has-point="N"] { display: none; }
.fix-cart-price-point.has-point [data-has-point="Y"] { display: inline; }

.fix-cart-buttons .btn-counsel[data-channel=""] {
    display: none;
}

.fix-cart-buttons .btn-order {
    font-weight: 500;
}

/* 재오픈 버튼 */
.fix-cart-reopen {
    position: fixed;
    z-index: 1040;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--bs-border-color, #dee2e6);
    background: var(--bs-body-bg, #fff);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--bs-body-color);
    font-size: 1.125rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.fix-cart-reopen:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
}

/* 데스크탑: 우측 고정 */
@media (min-width: 992px) {
    .fix-cart-wrapper {
        bottom: 24px;
        right: 24px;
        width: 320px;
    }

    .fix-cart-wrapper.is-hidden {
        transform: translateX(360px);
        opacity: 0;
        pointer-events: none;
    }

}

/* 모바일: 하단 고정 */
@media (max-width: 991.98px) {
    .fix-cart-wrapper {
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
    }

    .fix-cart-inner {
        border-radius: 12px 12px 0 0;
        border-bottom: none;
    }

    .fix-cart-wrapper.is-hidden {
        transform: translateY(100%);
        opacity: 0;
        pointer-events: none;
    }

    /* 축소: 바디+헤더 숨기고 푸터만 노출 */
    .fix-cart-wrapper.is-minimized .fix-cart-header,
    .fix-cart-wrapper.is-minimized .fix-cart-body {
        display: none;
    }

    .fix-cart-body {
        max-height: 40vh;
    }

    /* 모바일에서 위로가기 → 토글 아이콘 */
    .fix-cart-top-btn i {
        transition: transform 0.2s ease;
    }
}

/* ── 상담 신청 모달 ────────────────────────────────────── */
.rental-consultation-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9000;
    align-items: center;
    justify-content: center;
}
.rental-consultation-overlay.active {
    display: flex;
}
.rental-consultation-modal {
    position: relative;
    background: #fff;
    border-radius: 16px;
    width: 92%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}
.rental-consultation-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: #666;
    cursor: pointer;
    z-index: 1;
}
.rental-consultation-close:hover {
    color: #000;
}
.rental-consultation-header {
    padding: 24px 24px 0;
}
.rental-consultation-header h4 {
    margin: 0 0 4px;
    font-size: 1.25rem;
    font-weight: 700;
}
.rental-consultation-body {
    padding: 16px 24px;
}
.rental-consultation-field {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
.rental-consultation-field:last-child {
    border-bottom: none;
}
.rental-consultation-label {
    flex: 0 0 100px;
    padding-top: 7px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}
.rental-consultation-input {
    flex: 1;
    min-width: 0;
}
.rental-consultation-footer {
    padding: 0 24px 24px;
}

/* ── 반응형 ─────────────────────────────────────────── */
@media (max-width: 767.98px) {
    .rental-goods-view__thumb {
        width: 48px;
        height: 48px;
    }
    .rental-consultation-field {
        flex-direction: column;
    }
    .rental-consultation-label {
        flex: none;
        padding-top: 0;
        margin-bottom: 6px;
    }
}

/* ================================================================
   견적서 (/rental/quotation) — 한국 전통 견적서 양식
   Bootstrap CSS 비의존 스코프. 아이콘 폰트(bi-*)만 공통.
   클래스 네임스페이스: .rental-quotation-*
   ================================================================ */

.rental-quotation {
    max-width: 960px;
    margin: 30px auto;
    padding: 24px 16px;
    color: #222;
}

/* 페이지 제목과 안내 문구는 스크린 리더 전용 (화면에서는 영역도 차지하지 않음) */
.rental-quotation-heading,
.rental-quotation-intro {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.rental-quotation-doc {
    background: #fff;
    border: 2px solid #222;
    padding: 36px 40px;
}

/* 제목 (맨 위, 중앙 정렬) */
.rental-quotation-title {
    text-align: center;
    margin: 0 0 24px;
}
.rental-quotation-title-inner {
    display: inline-block;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 14px;
    /* trailing letter-spacing(14px) 상쇄: padding-left 로 좌우 대칭 + margin-right 로 밑줄 끝 맞춤 */
    padding: 0 0 4px 14px;
    margin-right: -14px;
    border-bottom: 3px solid #222;
}

/* 헤더: 좌(번호·날짜·수신) / 우(공급자) — flex 양쪽 배치 */
.rental-quotation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 18px;
}
.rental-quotation-header-left,
.rental-quotation-header-right { flex: 1 1 0; min-width: 0; }

.rental-quotation-no {
    display: inline-block;
    min-width: 160px;
    padding: 2px 0;
    color: #9ca3af;
}
.rental-quotation-date {
    margin: 0;
}

.rental-quotation-recipient {
    margin-top: 18px;
}
.rental-quotation-recipient-input {
    border: 0;
    border-bottom: 1.5px solid #222;
    padding: 3px 8px;
    width: 260px;
    font-size: 15px;
    background: transparent;
    outline: none;
    font-family: inherit;
    color: inherit;
}
.rental-quotation-recipient-input:focus { background: #fffbea; }
.rental-quotation-recipient-suffix {
    font-size: 16px;
    font-weight: 600;
    margin-left: 8px;
}

.rental-quotation-contact {
    margin-top: 8px;
}
.rental-quotation-contact-label {
    display: none;
}
.rental-quotation-contact-input {
    border: 0;
    border-bottom: 1.5px solid #222;
    padding: 3px 8px;
    width: 260px;
    font-size: 15px;
    background: transparent;
    outline: none;
    font-family: inherit;
    color: inherit;
}
.rental-quotation-contact-input:focus { background: #fffbea; }

/* 공급자 격자 */
.rental-quotation-supplier {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.rental-quotation-supplier th,
.rental-quotation-supplier td {
    border: 1px solid #222;
    padding: 5px 7px;
    vertical-align: middle;
}
.rental-quotation-supplier th {
    background: #f3f4f6;
    font-weight: 600;
    text-align: center;
    width: 75px;
}
.rental-quotation-supplier-side {
    width: 20px;
    text-align: center;
    background: #f3f4f6;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 2px;
}
.rental-quotation-stamp-slot { position: relative; }
.rental-quotation-stamp-placeholder {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: 1.5px dashed #c00;
    color: #c00;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    opacity: 0.35;
}

/* 섹션 (1. 제품 및 조건 / 2. 비고 ...) */
.rental-quotation-section {
    margin-top: 24px;
}
.rental-quotation-section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}
.rental-quotation-section-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: #111;
}
.rental-quotation-section-note {
    font-size: 12px;
    color: #6b7280;
}

/* 품목 표 (반응형 — 좁은 화면에서 가로 스크롤) */
.rental-quotation-items-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.rental-quotation-items {
    border-collapse: collapse;
    font-size: 14px;
}
.rental-quotation-items th,
.rental-quotation-items td {
    border: 1px solid #222;
    padding: 6px 8px;
    vertical-align: middle;
    font-size: 14px;
}
.rental-quotation-items td { white-space: nowrap; }
.rental-quotation-items td:first-child,
.rental-quotation-items td:nth-child(3) {
    white-space: normal;
    overflow-wrap: break-word;
}
.rental-quotation-items th {
    background: #e5e7eb;
    text-align: center;
    font-weight: 700;
    letter-spacing: 2px;
    white-space: nowrap;
}
.rental-quotation-items th small {
    display: block;
    font-weight: 400;
    font-size: 14px;
    color: #555;
    margin-top: 1px;
}
.rental-quotation-items td.right  { text-align: right; }
.rental-quotation-items td.center { text-align: center; }
.rental-quotation-items .goods-name  { font-weight: 700; font-size: 14px; }
.rental-quotation-items .goods-model { font-size: 14px; color: #222; }
.rental-quotation-items .goods-brand { font-size: 14px; color: #6b7280; margin-top: 2px; }
.rental-quotation-items .options     { font-size: 14px; color: #333; }
.rental-quotation-items tfoot td {
    background: #f9fafb;
    font-weight: 700;
}

/* 수량 조정 UI (견적서 전용 스코프) — 2행 세로 스택 */
.rental-quotation-qty-cell {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.rental-quotation-qty-group {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.rental-quotation-qty-btn {
    display: none;  /* -/+ 버튼은 숨김 (input 직접 입력 방식) */
}
.rental-quotation-qty-input {
    width: 50px;
    height: 26px;
    padding: 2px;
    text-align: center;
    border: 1px solid #888;
    font-family: inherit;
    font-size: 12px;
    outline: none;
    background: #fff;
}
.rental-quotation-qty-input:focus { border-color: #1d4ed8; }
.rental-quotation-qty-save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 26px;
    padding: 0;
    border: 1px solid #1d4ed8;
    background: #1d4ed8;
    color: #fff;
    font-family: inherit;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
    vertical-align: middle;
}
.rental-quotation-qty-save:hover:not(:disabled) { background: #1e40af; }
.rental-quotation-qty-save:disabled {
    display: none;
}

/* 아이템 삭제 버튼 */
.rental-quotation-remove-btn {
    background: none;
    border: none;
    color: #dc2626;
    cursor: pointer;
    padding: 2px 4px;
    font-size: 14px;
    line-height: 1;
}
.rental-quotation-remove-btn:hover { color: #991b1b; }

/* 빈 장바구니 */
.rental-quotation-empty {
    border: 1px solid #222;
    padding: 40px 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-top: -1px;
}
.rental-quotation-empty-cta {
    display: inline-block;
    margin-top: 16px;
    padding: 6px 14px;
    border: 1px solid #1d4ed8;
    color: #1d4ed8;
    text-decoration: none;
    font-size: 13px;
    border-radius: 4px;
}
.rental-quotation-empty-cta:hover { background: #eef2ff; }

/* 비고 (ul+li) */
.rental-quotation-notes {
    margin: 0;
    padding-left: 20px;
    font-size: 12px;
    color: #374151;
    line-height: 1.8;
}
.rental-quotation-notes li {
    margin: 0;
}

/* 액션 */
.rental-quotation-actions {
    text-align: center;
    margin: 28px 0 10px;
}
.rental-quotation-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 28px;
    border: none;
    background: #1d4ed8;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
}
.rental-quotation-download-btn:hover:not(:disabled) { background: #1e40af; }
.rental-quotation-download-btn:disabled { background: #9ca3af; cursor: not-allowed; }
.rental-quotation-actions-hint {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #6b7280;
}

/* ----------------------------------------------------------------
   견적서 모바일 반응형 (max-width: 720px)
   - 헤더 좌/우 flex 를 세로 스택으로
   - 공급자 블록 고정 380px 해제 → 자연 크기
   - 제목 / 패딩 / input 폭 축소
   - 공급자 셀 word-break 허용
   ---------------------------------------------------------------- */
@media (max-width: 720px) {
    .rental-quotation {
        padding: 12px 8px;
    }
    .rental-quotation-doc {
        padding: 20px 16px;
    }

    /* 제목 — 축소 + letter-spacing 상쇄값 재조정 */
    .rental-quotation-title-inner {
        font-size: 22px;
        letter-spacing: 8px;
        padding: 0 0 3px 8px;
        margin-right: -8px;
        border-bottom-width: 2px;
    }

    /* 헤더: flex 가로 → 세로 스택 */
    .rental-quotation-header {
        display: block;
    }
    .rental-quotation-header-left,
    .rental-quotation-header-right {
        width: auto;
        padding: 0;
    }
    .rental-quotation-header-right {
        margin-top: 16px;
    }

    /* 수신처/연락처 input 폭 풀림 */
    .rental-quotation-recipient-input,
    .rental-quotation-contact-input {
        width: 100%;
        max-width: 260px;
    }

    /* 공급자 격자 — 폰트 축소 + 주소 긴 값 줄바꿈 */
    .rental-quotation-supplier {
        font-size: 10.5px;
    }
    .rental-quotation-supplier th {
        width: 60px;
    }
    .rental-quotation-supplier td {
        word-break: break-all;
    }

    /* 섹션 note(단위: 원, VAT 포함) 가 좁을 땐 아래로 흘러도 무해 */
    .rental-quotation-section-header {
        flex-wrap: wrap;
    }

    /* 모바일에선 품목 표 전부 nowrap — 좁은 화면에선 가로 스크롤로 탐색 */
    .rental-quotation-items td,
    .rental-quotation-items td:first-child,
    .rental-quotation-items td:nth-child(3) {
        white-space: nowrap;
    }
}
