/* ==========================================================================
   shop.css — 쇼핑몰 전체 스타일
========================================================================== */

/* ========================
   전체 레이아웃
======================== */

.shop-layout {
    display: grid;
    grid-template-columns: 250px 1fr 730px;
    min-height: 100vh;
    background: #F9F9F9;
}

.shop-layout--join {
    align-items: start;
}

.shop-layout:has(.shop-right.is-hidden) {
    grid-template-columns: 250px 1fr;
}

.shop-main {
    padding: 20px;
    overflow-y: auto;
    align-self: start;
}

/* ========================
   사이드바 상단 빨간 영역
======================== */

.sidebar-top {
    background: #BA0000;
    border-radius: 0 0 30px 30px;
    overflow: hidden;
}

.sidebar-logo {
    padding: 16px 12px;
    text-align: center;
}

.sidebar-logo__text {
    color: #fff !important;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.sidebar-auth {
    display: flex;
    gap: 6px;
    padding: 10px;
}

.sidebar-auth--member {
    flex-direction: column;
    gap: 4px;
}

.sidebar-auth .sidebar-auth__welcome {
    color: #fff;
    opacity: 0.8;
    margin: 0;
}

.sidebar-auth a.sidebar-auth__member-link {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-auth__member-arrow {
    cursor: pointer;
}

.sidebar-auth__btn {
    color: #fff !important;
    flex: 1;
    padding: 15px 0;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    border: 1px solid #fff;
    text-decoration: none;
    transition: background 0.2s;
}

.sidebar-auth__btn--primary {
    background: #fff;
    color: var(--color-red) !important;
    border: none !important;
}

.sidebar-stats {
    display: flex;
    justify-content: space-around;
    gap: 12px;
    padding: 8px 12px;
}

.sidebar-stats__item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #fff;
}

/* ========================
   사이드바
======================== */

.shop-sidebar {
    width: 250px;
    min-height: 100vh;
    background: #fff;
    border-right: 1px solid #E5E5E5;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
    margin-top: 20px;
    padding: 0 10px;
}

.sidebar-nav::-webkit-scrollbar {
    width: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

.sidebar-nav__group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    color: #333;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.b-t {
    border-top: 1px solid #E5E5E5;
}

.sidebar-nav__group-title.is-active {
    background: #FFF3F3;
    color: var(--color-red);
    border-radius: 20px;
}

.sidebar-nav__group-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-nav__group-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.sidebar-nav__group-title.is-active .sidebar-nav__group-icon {
    filter: invert(13%) sepia(90%) saturate(5000%) hue-rotate(355deg) brightness(85%);
}

.sidebar-nav__arrow {
    font-size: 11px;
    color: #999;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.sidebar-nav__group.is-open .sidebar-nav__arrow {
    display: inline-block;
    transform: rotate(180deg);
}

.sidebar-nav__scroll-wrap {
    display: none;
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-nav__group.is-open .sidebar-nav__scroll-wrap {
    display: block;
}

.sidebar-nav__scroll-wrap::-webkit-scrollbar {
    width: 3px;
}

.sidebar-nav__scroll-wrap::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

.sidebar-nav__list {
    list-style: none;
    margin: 0;
    padding: 4px 25px 8px;
    display: block;
}

.sidebar-nav__item {
    display: block;
    padding: 8px 16px 8px 20px;
    color: #212529;
    text-decoration: none;
    transition: color 0.2s;
    border-radius: 8px;
}

.sidebar-nav__item:hover {
    color: var(--color-red);
}

.sidebar-nav__item.is-active {
    color: var(--color-red);
    border: 1px solid var(--color-red);
    border-radius: 15px;
    font-size: 14px;
}

.sidebar-bizinfo {
    padding: 6px 14px 16px;
    font-size: 11px;
    line-height: 1.6;
    color: #717680;
}

.sidebar-business > summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.sidebar-business > summary::-webkit-details-marker {
    display: none;
}

.sidebar-business[open] > summary .sidebar-nav__arrow {
    transform: rotate(180deg);
}

.sidebar-bizinfo__card {
    background: #f8f9fb;
    border: 1px solid #eef0f3;
    border-radius: 8px;
    padding: 12px 13px;
}

.sidebar-bizinfo__row {
    margin-bottom: 3px;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.sidebar-bizinfo__brand {
    font-weight: 700;
    color: #212529;
}

.sidebar-bizinfo__divider {
    color: #c4c8cf;
    margin: 0 4px;
}

.sidebar-info__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px solid #e5e8ec;
    font-size: 11px;
}

.sidebar-info__links a {
    color: #495057;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s ease;
}

.sidebar-info__links a:hover {
    color: var(--color-red, #ff3b30);
}

.sidebar-info__sep {
    color: #c4c8cf;
    font-size: 10px;
}

.sidebar-bizinfo__copy {
    margin-top: 8px;
    font-size: 10px;
    color: #98a1ab;
    letter-spacing: -0.2px;
}

/* ========================
   오른쪽 패널
======================== */

.shop-right {
    width: 720px;
    min-height: 100vh;
    overflow-y: auto;
    margin-top: 10px;
}

.shop-right.is-hidden {
    display: none;
}

.right-banner {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.right-banner__slide img {
    width: 100%;
}

.right-banner__label {
    font-size: 12px;
    color: #aac4ff;
    margin-bottom: 6px;
}

.right-banner__title {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 8px;
}

.right-banner__highlight {
    color: #00e5ff;
}

.right-banner__date {
    font-size: 11px;
    color: #7a9fd4;
}

.right-banner__coupons {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.right-banner__coupon {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 6px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.right-banner__coupon-label {
    font-size: 9px;
    color: #aac4ff;
}

.right-banner__coupon-value {
    font-size: 12px;
    font-weight: 700;
    color: #00e5ff;
}

.right-banner__pagination {
    position: absolute;
    bottom: 12px;
    right: 16px;
    background: rgba(0,0,0,0.4);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
}

.right-section {
    padding: 50px 40px;
    border-bottom: 1px solid #E5E5E5;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 15px;
}

.right-section__title {
    color: #212529;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #E5E5E5;
}

.right-recommend__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    text-decoration: none;
}

.right-recommend__item:last-child {
    border-bottom: none;
}

.right-recommend__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.right-recommend__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.right-recommend__info {
    flex: 1;
}

.right-recommend__platform {
    color: #999;
    margin-bottom: 5px;
}

.right-recommend__text {
    color: #212529;
}

.right-recommend__arrow {
    color: #212529;
    font-size: 20px;
}

.right-recommend__icon-bg {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.right-recommend__icon-bg img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.right-faq-marquee {
    overflow: hidden;
    width: 100%;
    padding: 10px 0;
    margin: -10px 0;
}

.right-faq-marquee__track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: faqMarquee 20s linear infinite;
}

.right-faq-marquee__track:hover {
    animation-play-state: paused;
}

@keyframes faqMarquee {

    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.right-faq__item {
    border-radius: 10px;
    padding: 15px;
    text-decoration: none;
    transition: background 0.2s;
    flex-shrink: 0;
    width: 170px;
    box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.08);
}

.right-faq__icon {
    width: 100%;
    height: 90px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    overflow: hidden;
    box-sizing: border-box;
}

.right-faq__icon img {
    width: 100%;
    object-fit: contain;
}

.right-faq__tag {
    color: #555;
    margin-bottom: 15px;
    background: #F1F1F1;
    padding: 6px 7px;
    display: inline-block;
    width: fit-content;
    border-radius: 15px;
}

.right-faq__name {
    color: #555;
}

.right-why__wrap {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.right-why__item {
    display: flex;
    align-items: flex-start;
    flex-direction: row;
    background: #F9F9F9;
    padding: 25px 35px;
    border-radius: 45px;
    gap: 15px;
}

.right-why__item:last-child {
    border-bottom: none;
}

.right-why__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.right-why__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.right-why__title {
    color: #212529;
    margin-bottom: 5px;
}

.right-why__desc {
    color: #999;
    line-height: 1.6;
}

/* ========================
   공통 카드
======================== */

.shop-card {
    background: #fff;
    border-radius: 10px;
    padding: 50px;
    margin-bottom: 12px;
    border: 1px solid #E5E5E5;
}

.promotion-catalog__count {
    margin-bottom: 16px;
    color: var(--color-sub1);
}

.promotion-select {
    margin-top: 16px;
    padding: 12px 16px;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    cursor: pointer;
}

.promotion-catalog__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.promotion-catalog__item {
    padding: 24px;
    border: 1px solid var(--color-line);
    border-radius: 10px;
}

.promotion-catalog__name {
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.promotion-catalog__price {
    color: var(--color-red);
    font-size: 18px;
    font-weight: 700;
}

.promotion-catalog__description {
    margin-top: 16px;
    color: var(--color-sub1);
    line-height: 1.6;
    white-space: pre-line;
}

.promotion-catalog__message {
    padding: 20px 0;
    color: var(--color-sub1);
}

.shop-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    border-bottom: 1px solid #E5E5E5;
    padding-bottom: 15px;
}

.shop-card__title {
    color: #212529;
}

.shop-card__link {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #FFF3F3;
    border-radius: 17px;
    padding: 8px 12px;
    text-decoration: none;
}

.shop-card__header img {
    width: 15px;
    height: 15px;
}

.shop-card-txt {
    color: #BA0000;
}

.board-list-wrap {
    background: #fff;
    padding: 50px 30px;
    border-radius: 10px;
    border: 1px solid #E5E5E5;
}

/* ========================
   공통 컬러 / 유틸
======================== */

.red {
    color: #E45445;
}

.blue {
    color: #407CFF;
}

.pri {
    color: #212529 !important;
}

.gray {
    color: #999999 !important;
}

.pria {
    color: #212529;
}

.b-none {
    border-bottom: none !important;
}

.w-200 {
    width: 200px !important;
}

#detailLeft {
    background: #F9F9F9;
}

/* ========================
   공지사항 바 / 검색
======================== */

.shop-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--color-red);
    color: #fff;
    padding: 10px 16px;
    margin-bottom: 15px;
    border-radius: 10px;
}

.shop-notice__text {
    flex: 1;
}

.shop-search {
    display: flex;
    align-items: center;
    border: 1px solid #BA0000;
    border-radius: 25px;
    padding: 15px 25px;
    margin-bottom: 30px;
    background: #fff;
}

.shop-search__input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    color: #999;
    background: transparent;
}

.shop-search__input::placeholder {
    color: #bbb;
}

.shop-search__btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #999;
}

/* ========================
   주문 STEP
======================== */

.order-step {
    margin-bottom: 24px;
}

.order-step__label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #212529;
    margin-bottom: 25px;
}

.order-step__num {
    font-weight: 900;
    color: var(--color-red);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.order-step__hint {
    margin-top: 6px;
}

/* ========================
   서비스 아이콘 그리드
======================== */

.service-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    margin-bottom: 35px;
    justify-items: start;
}

.service-icon {
    border: 0;
    background: transparent;
    font: inherit;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.service-icon.is-active .service-icon__name {
    color: var(--color-red);
    font-weight: 700;
}

.service-icon__bg {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #F9F9F9;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    transition: background 0.2s, border 0.2s;
}

.service-icon.is-active .service-icon__bg {
    background-color: #FFF3F3;
    border: 1px solid #BA0000;
}

.service-icon__img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: none;
}

.service-icon__name {
    color: #333;
}

/* ========================
   세부 서비스
======================== */

.service-detail {
    border: 1px solid #E5E5E5;
    border-radius: 10px;
    overflow: hidden;
}

.service-detail__header {
    padding: 15px 18px;
    background: #fff;
    border-bottom: 1px solid #E5E5E5;
}

.service-detail__wrap {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 340px;
}

.service-detail__col {
    border-right: 1px solid #eee;
    overflow-y: auto;
    max-height: 340px;
}

.service-detail__col:last-child {
    border-right: none;
}

.service-detail__item {
    display: block;
    padding: 10px 16px;
    font-size: 13px;
    color: #444;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.service-detail__item[hidden],
.service-empty[hidden],
.service-search-status[hidden] {
    display: none;
}

button.service-detail__item {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #f5f5f5;
    background: transparent;
    text-align: left;
    font-family: inherit;
}

button.service-detail__item--right {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.service-product__title {
    min-width: 0;
    overflow-wrap: anywhere;
}

.service-payment-badge {
    flex-shrink: 0;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 1px 5px;
    font-size: 11px;
    line-height: 1.4;
    color: #999;
    background: #fff;
}

.service-detail__item.is-active .service-payment-badge--CASH_ONLY {
    color: #BA0000;
    border-color: #BA0000;
    background: #fff3f3;
}

.service-detail__item.is-active .service-payment-badge--CARD_AVAILABLE {
    color: #BA0000;
    border-color: #BA0000;
}

.service-detail__service {
    color: #BA0000;
}

.service-empty,
.service-search-status {
    padding: 12px 0;
    color: #777;
}

.order-accordion__desc {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.service-icon:focus-visible,
.service-detail__item:focus-visible {
    outline: 2px solid #BA0000;
    outline-offset: -2px;
}

.order-submit:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.service-detail__item:hover {
    background: #f9f9f9;
}

.service-detail__item--left.is-active {
    background: var(--color-red);
    color: #fff;
    font-weight: 700;
}

.service-detail__item--right.is-active {
    background: #FFF3F3;
    color: var(--color-red);
    font-weight: 700;
}

/* ========================
   입력 필드
======================== */

.order-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E5E5E5;
    border-radius: 20px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}

.order-input:focus {
    border-color: #BA0000;
}

.order-input::placeholder {
    color: #bbb;
}

/* ========================
   포인트
======================== */

/* ========================
   아코디언
======================== */

.order-accordion {
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
}

.order-accordion--spaced {
    margin-top: 16px;
}

.order-accordion__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    color: #212529;
    border-radius: 8px;
    background: #f9f9f9;
}

.order-accordion__body-title {
    margin: 0 0 6px 0;
    font-weight: 600;
    color: #111;
}

.order-accordion__body {
    display: none;
    padding: 16px;
    position: relative;
    background: #F9F9F9;
}

.order-accordion__body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 16px;
    right: 16px;
    height: 1px;
    background: #eee;
}

.order-accordion.is-open .order-accordion__body {
    display: block;
}

.order-accordion__service-name {
    font-size: 14px;
    color: #555;
    margin-bottom: 12px;
}

.order-accordion__quote {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    margin-bottom: 12px;
}

.order-accordion__desc {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 12px;
}

.order-accordion__sub-title {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    margin-bottom: 6px;
}

.order-accordion__list {
    list-style: disc;
    padding-left: 20px;
    font-size: 14px;
    color: #555;
    line-height: 1.8;
}

/* ========================
   주문 금액 요약
======================== */

.order-summary__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.order-summary__row {
    display: flex;
    justify-content: space-between;
    color: #212529;
    padding: 6px 0;
}

.order-summary__row del {
    color: #bbb;
}

.order-summary__agree {
    color: #999;
    text-align: left;
    margin: 20px 0 30px;
}

/* ========================
   공통 제출 버튼
======================== */

.order-submit,
.charge-submit,
.auth-submit {
    width: 100%;
    padding: 16px;
    background: var(--color-red);
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s;
}

.order-submit:hover,
.charge-submit:hover,
.auth-submit:hover {
    background: #900000;
}

.charge-submit:disabled,
.auth-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* ========================
   충전
======================== */

.member-withdrawal-link {
    display: block;
    margin-top: 24px;
    color: var(--color-sub1);
    text-align: right;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.withdrawal-card {
    box-sizing: border-box;
    width: 100%;
    max-width: 480px;
    min-height: calc(100vh - 40px);
    padding: 40px;
    border: 1px solid var(--color-line);
    border-radius: 10px;
    background: var(--color-white);
    font-family: 'Pretendard-Regular', sans-serif;
}

.withdrawal-title {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-line);
}

.withdrawal-intro {
    padding: 40px 0 28px;
    text-align: center;
    font-size: 14px;
    line-height: 1.8;
}

.withdrawal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 30px;
    border-radius: 50%;
    background: var(--color-red);
    color: var(--color-white);
    font-family: Georgia, serif;
    font-size: 54px;
    font-weight: 700;
}

.withdrawal-wallet {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 8px;
    background: #F9F9F9;
    font-size: 14px;
}

.withdrawal-wallet > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
}

.withdrawal-wallet dd,
.withdrawal-agree strong {
    color: var(--color-red);
}

.withdrawal-policy {
    display: grid;
    gap: 8px;
    margin: 18px 0 28px;
    color: var(--color-sub1);
    font-size: 12px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.withdrawal-password-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
}

.withdrawal-form input[type="password"] {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--color-line);
    border-radius: 10px;
    background: var(--color-white);
    font: inherit;
    font-size: 14px;
}

.withdrawal-agree {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 28px 0;
    padding: 16px;
    border-radius: 8px;
    background: #F9F9F9;
    font-size: 12px;
    line-height: 1.7;
    cursor: pointer;
}

.withdrawal-agree input {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--color-red);
}

.withdrawal-submit {
    width: 100%;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 28px;
    background: var(--color-red);
    color: var(--color-white);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.withdrawal-submit:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.withdrawal-form input:focus-visible,
.withdrawal-submit:focus-visible {
    outline: 2px solid var(--color-red);
    outline-offset: 3px;
}

.withdrawal-message,
.withdrawal-complete {
    margin: 20px 0;
    padding: 16px;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: #FFF3F3;
    font-size: 13px;
    line-height: 1.7;
}

.withdrawal-message ul {
    display: grid;
    gap: 8px;
    margin: 10px 0;
}

.withdrawal-message a {
    display: inline-block;
    margin-right: 12px;
    color: var(--color-red);
    text-decoration: underline;
}

.withdrawal-status {
    margin-top: 12px;
    color: var(--color-red);
    font-size: 13px;
    line-height: 1.6;
}

.withdrawal-back {
    display: block;
    margin-top: 12px;
    color: var(--color-sub1);
    text-align: center;
    font-size: 13px;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .withdrawal-card {
        min-height: 0;
        padding: 28px 20px;
    }
}

.charge-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 24px;
}

.charge-form {
    min-width: 0;
}

.charge-layout .shop-card {
    box-sizing: border-box;
    min-width: 0;
    margin-bottom: 0;
    padding: 32px;
}

.charge-history {
    overflow-wrap: anywhere;
}

.charge-history h2 {
    margin-bottom: 12px;
}

.charge-tabs {
    display: flex;
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #E5E5E5;
}

.charge-tab {
    flex: 1;
    padding: 14px 0;
    font-size: 15px;
    font-weight: 700;
    border: none;
    background: #fff;
    color: #999;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.charge-tab.is-active {
    background: var(--color-red);
    color: #fff;
}

.charge-section {
    margin-bottom: 32px;
}

.charge-section__title {
    color: #212529;
    margin-bottom: 20px;
}

.charge-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.charge-amount,
.charge-amount-acc {
    padding: 14px 0;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 50px;
    color: #444;
    cursor: pointer;
    transition: all 0.2s;
}

.charge-amount:hover,
.charge-amount.is-active,
.charge-amount-acc:hover,
.charge-amount-acc.is-active {
    background: #fff0f0;
    border-color: var(--color-red);
}

.charge-summary {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #E5E5E5;
}

.charge-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.charge-summary__label {
    color: #666;
}

.charge-summary__values {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.charge-summary__main {
    color: var(--color-red);
}

.charge-summary__sub {
    color: #777;
}

.charge-pay__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #E5E5E5;
}

.charge-pay__total {
    color: var(--color-red);
}

.charge-pay__row {
    display: flex;
    justify-content: space-between;
    color: #666;
    padding: 6px 0;
}

.charge-account {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-top: 16px;
}

.charge-account__label {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.charge-account__bank {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin-bottom: 4px;
}

.charge-account__num {
    font-size: 20px;
    font-weight: 900;
    color: #111;
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.charge-account__name {
    font-size: 13px;
    color: #666;
}

/* 계좌입금 탭 */

.charge-summary-box {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.charge-summary-box__label {
    font-size: 14px;
    color: #333;
    padding-top: 4px;
}

.charge-summary-box__right {
    text-align: right;
}

.charge-summary-box__amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-red);
    margin-bottom: 4px;
}

.charge-summary-box__point,
.charge-summary-box__balance {
    font-size: 12px;
    color: #888;
    margin-bottom: 2px;
}

.charge-depositor {
    margin-top: 28px;
}

.charge-depositor__label {
    color: #212529;
    margin-bottom: 15px;
}

.charge-depositor__input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    box-sizing: border-box;
    outline: none;
}

.charge-depositor__input::placeholder {
    color: #bbb;
}

.charge-depositor__input:focus {
    border-color: var(--color-red);
}

.charge-payment-info {
    margin-top: 60px;
}

.charge-payment-info__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.charge-payment-info__total > span:first-child {
    color: #212529;
}

.charge-payment-info__total-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-red);
}

.charge-payment-info__detail {
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
}

.charge-payment-info__row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.charge-payment-info__row--vat {
    color: #999;
}

/* ========================
   주문 내역
======================== */

.order-history__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.order-card {
    background: #fff;
    border: 1px solid #E5E5E5;
    border-radius: 10px;
    padding: 20px;
    transition: box-shadow 0.2s;
}

.order-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.order-card__date {
    color: #999;
    margin-bottom: 10px;
}

.order-card__title {
    color: #212529;
    margin-bottom: 10px;
}

.order-card__tags {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
}

.order-card__status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    color: #fff;
}

.order-card__status--ing,
.order-card__status--done,
.order-card__status--wait,
.order-card__status--stop,
.order-card__status--fail,
.order-card__status--cancel {
    background: #FFE5E5;
    color: #BA0000;
}

.order-card__status--red {
    background: var(--color-red);
    color: #fff;
}

.order-card__status--gray {
    background: #888;
    color: #fff;
}

.order-card__tag {
    padding: 3px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #555;
    background: #fff;
}

.order-card__link {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #999;
    text-decoration: none;
    font-size: 12px;
}

.order-card__divider {
    border: none;
    border-top: 1px solid #f0f0f0;
    margin-bottom: 12px;
}

.order-card__info {
    display: flex;
    gap: 12px;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 14px 16px;
}

.order-card__info-item {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.order-card__info-label {
    font-size: 10px;
    color: #999;
    margin-bottom: 7px;
    white-space: nowrap;
}

.order-card__info-value {
    color: #212529;
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.order-card__info-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-card__copy {
    font-size: 10px;
    padding: 2px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #888;
    cursor: pointer;
    white-space: nowrap;
}

.order-card__copy:hover {
    background: #f5f5f5;
}

/* ========================
   이용내역 wrap
======================== */

.order-wrap {
    padding: 50px;
    background: #fff;
    border: 1px solid #E5E5E5;
    border-radius: 10px;
}

.order__title {
    color: #212529;
    border-bottom: 1px solid #E5E5E5;
    padding-bottom: 13px;
    margin-bottom: 30px;
}

.search-wrap {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.order-search {
    width: 570px;
    display: flex;
    align-items: center;
    border: 1px solid #E5E5E5;
    border-radius: 50px;
    padding: 12px 20px;
    background: #fff;
}

.order-search__input {
    flex: 1;
    border: none;
    outline: none;
    color: #333;
    font-size: 14px;
    background: transparent;
}

.order-search__input::placeholder {
    color: #bbb;
}

.order-search__btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.order-search__btn img {
    width: 18px;
    height: 18px;
}

.order-filter {
    display: flex;
    gap: 10px;
}

.order-filter__select {
    font-family: 'Pretendard-Medium', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    letter-spacing: -0.2px;
    width: 180px;
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    background: #fff;
    color: #212529;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23999' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.order-total {
    color: #777;
    margin-bottom: 30px;
}

.order-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* orderHistory 전용 재정의 */

.order-wrap .order-search {
    width: auto;
    border-radius: 50px;
    padding: 14px 24px;
    margin-bottom: 12px;
}

.order-wrap .order-filter {
    margin-bottom: 12px;
}

.order-wrap .order-filter__select {
    width: auto;
    padding: 12px 44px 12px 16px;
    border-radius: 8px;
    background-position: right 14px center;
    background-size: 16px;
}

.order-wrap .order-filter__select:focus {
    border-color: var(--color-red);
}

.order-wrap .order-total {
    font-size: 14px;
    margin-bottom: 16px;
    color: #888;
}

/* ========================
   게시판 공통
======================== */

.board-layout,
.guide-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: flex-start;
}

.board-list-wrap {
    background: #fff;
    padding: 50px 30px;
    border-radius: 10px;
    border: 1px solid #E5E5E5;
}

.guide-search {
    display: flex;
    align-items: center;
    border: 1px solid #E5E5E5;
    border-radius: 25px;
    padding: 15px 25px;
    margin-bottom: 30px;
    background: #fff;
}

.guide-search__input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    color: #333;
    background: transparent;
}

.guide-search__input::placeholder {
    color: #bbb;
}

.guide-search__btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #999;
}

.guide-list__title {
    color: #212529;
    margin-bottom: 20px;
}

.guide-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 24px;
}

.guide-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    border: 1px solid #E5E5E5;
    border-radius: 10px;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s;
}

.guide-list__item:hover {
    border-color: var(--color-red);
    background: #fff8f8;
}

.guide-list__item.is-active {
    border-color: var(--color-red);
    background: #fff0f0;
}

.guide-list__item.is-active .guide-list__item-title {
    color: var(--color-red);
    font-weight: 700;
}

.guide-list__item.is-active .guide-list__item-arrow {
    color: var(--color-red);
}

.guide-list__item-title {
    color: #212529;
}

.guide-list__item-arrow {
    font-size: 18px;
    color: #999;
}

.guide-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.guide-pagination__btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    color: #212529;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.guide-pagination__btn.is-active,
.guide-pagination .guide-pagination__btn[aria-current="page"] {
    background-color: var(--color-red, #BA0000);
    color: #fff;
    font-weight: 700;
}

.guide-pagination__btn--arrow {
    color: #D9D9D9;
    font-size: 18px;
    background: #F9F9F9;
}

.board-detail-panel {
    padding: 50px;
    margin-top: 10px;
    height: 100%;
    background: #fff;
    border: 1px solid #E5E5E5;
    border-radius: 10px;
}

.board-detail-panel__empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #bbb;
}

.board-detail-panel__title {
    color: #212529;
    margin-bottom: 20px;
}

.board-detail-panel__date {
    color: #999;
    border-bottom: 1px solid #E5E5E5;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.board-detail-panel__body {
    color: #444;
    line-height: 1.8;
}

/* ========================
   로그인 모달
======================== */

.login-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.login-backdrop.is-open {
    display: flex;
}

.login-modal {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 32px 28px;
    width: 340px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.login-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: #F9F9F9;
    border: none;
    border-radius: 50%;
    padding: 5px 10px;
    font-size: 18px;
    color: #000;
    cursor: pointer;
}

.login-modal__close:hover {
    color: #333;
}

.login-modal__logo {
    font-size: 18px;
    color: var(--color-red);
    margin-bottom: 8px;
}

.login-modal__slogan {
    font-size: 16px;
    color: #111;
    line-height: 1.6;
}

.login-modal__divider {
    border: none;
    border-top: 2px solid #E5E5E5;
    margin: 20px 0 45px 0;
}

.login-modal__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-modal__input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}

.login-modal__input:focus {
    border-color: var(--color-red);
}

.login-modal__input::placeholder {
    color: #bbb;
}

.login-modal__options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 8px;
}

.login-modal__remember {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}

.login-modal__remember input {
    accent-color: var(--color-red);
}

.login-modal__find {
    color: #666;
    text-decoration: underline;
}

.login-modal__find:hover {
    color: var(--color-red);
}

.login-modal__btns {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.login-modal__btn {
    flex: 1;
    padding: 13px 0;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.login-modal__btn--primary {
    background: var(--color-red);
    color: #fff;
    border: none;
}

.login-modal__btn--primary:hover {
    background: #900000;
}

.login-modal__btn--outline {
    background: #fff;
    color: var(--color-red);
    border: 1px solid var(--color-red);
}

.login-modal__btn--outline:hover {
    background: #fff5f5;
}

/* ========================
   회원가입 / 비밀번호찾기
======================== */

.auth-wrap {
    max-width: 480px;
    background: #fff;
    border-radius: 10px;
    padding: 32px;
    border: 1px solid #E5E5E5;
}

.auth__title {
    color: #212529;
    margin-bottom: 20px;
}

.auth__divider {
    border: none;
    border-top: 2px solid #E5E5E5;
    margin-bottom: 45px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-field__label {
    color: #212529;
}

.auth-field__input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}

.auth-field__input:focus {
    border-color: var(--color-red);
}

.auth-field__input::placeholder {
    color: #bbb;
}

.auth-field__error {
    font-size: 12px;
    color: var(--color-red);
}

.auth-agree {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-agree__item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #444;
}

.auth-agree__item input {
    accent-color: var(--color-red);
    width: 16px;
    height: 16px;
}

.auth-agree__link {
    color: var(--color-red) !important;
    text-decoration: underline;
}

.findpw__icon {
    text-align: center;
    margin-bottom: 20px;
}

.findpw__icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.findpw__desc {
    text-align: center;
    color: #212529;
    line-height: 1.8;
    margin-bottom: 28px;
}

/* ========================
   회원정보 수정
======================== */

.edit-field {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.edit-field--pw-confirm {
    margin-top: -12px;
    margin-bottom: 32px;
}

.edit-field__label {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
}

.edit-field__input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
    background: #fff;
}

.edit-field__input::placeholder {
    color: #bbb;
}

.edit-field__input:focus {
    border-color: var(--color-red);
}

.edit-field__input--readonly {
    background: #f9f9f9;
    color: #aaa;
    cursor: default;
    border-color: #eee;
}

.edit-field__input--readonly:focus {
    border-color: #eee;
}

.edit-field__error {
    font-size: 12px;
    color: var(--color-red);
    margin-top: 4px;
    display: none;
}

.edit-field__error.is-show {
    display: block;
}

/* ========================
   링크 수정 모달
======================== */

.link-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.link-modal-backdrop.is-open {
    display: flex;
}

.link-modal {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px;
    width: 360px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.link-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #F9F9F9;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.link-modal__close:hover {
    background: #eee;
}

.link-modal__tag {
    color: var(--color-red);
    margin-bottom: 10px;
}

.link-modal__title {
    color: #111;
    line-height: 1.4;
    margin-bottom: 20px;
}

.link-modal__divider {
    border: none;
    border-top: 1px solid #E5E5E5;
    margin-bottom: 24px;
}

.link-modal__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.link-modal__label {
    color: #333;
}

.link-modal__input {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}

.link-modal__input::placeholder {
    color: #bbb;
}

.link-modal__input:focus {
    border-color: var(--color-red);
}

.link-modal__submit {
    width: 100%;
    padding: 15px;
    background: var(--color-red);
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s;
}

.link-modal__submit:hover {
    background: #900000;
}

/* ========================
   반응형
======================== */

@media (max-width: 1200px) {

    .charge-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .shop-layout {
        grid-template-columns: 250px 1fr;
    }

    .shop-right {
        display: none;
    }

    .order-history__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .board-layout,
    .guide-layout {
        grid-template-columns: 1fr 1fr;
    }

    .shop-card {
        padding: 30px;
    }
}

@media (max-width: 768px) {

    .charge-layout .shop-card {
        padding: 20px;
    }

    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        display: none;
    }

    .shop-right {
        display: none;
    }

    .shop-main {
        padding: 12px;
    }

    .shop-card {
        padding: 20px;
    }

    .service-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
    }

    .service-icon__bg {
        width: 55px;
        height: 55px;
    }

    .order-history__grid {
        grid-template-columns: 1fr;
    }

    .board-layout,
    .guide-layout {
        grid-template-columns: 1fr;
    }

    .board-detail-panel {
        padding: 20px;
        margin-top: 12px;
    }

    .charge-amounts {
        grid-template-columns: repeat(2, 1fr);
    }

    .order-card__info {
        flex-wrap: wrap;
        gap: 10px;
    }

    .order-card__info-item {
        flex: 0 0 calc(50% - 5px);
    }

    .search-wrap {
        flex-direction: column;
    }

    .order-search {
        width: 100%;
    }

    .order-filter {
        flex-wrap: wrap;
    }

    .order-filter__select {
        flex: 0 0 calc(50% - 5px);
        width: calc(50% - 5px);
    }

    .auth-wrap {
        padding: 20px;
        max-width: 100%;
    }

    .login-modal {
        width: 90%;
        padding: 24px 20px;
    }

    .link-modal {
        width: 90%;
        padding: 24px 20px;
    }

    .shop-card .shop-card__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .order-wrap {
        padding: 20px;
    }

    .guide-search {
        padding: 12px 16px;
    }

    .guide-list__item {
        padding: 15px 20px;
    }

    .charge-summary-box {
        flex-direction: column;
        gap: 10px;
    }

    .charge-summary-box__right {
        text-align: left;
    }

    .service-detail__wrap {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .service-detail__col {
        border-right: none;
        border-bottom: 1px solid #eee;
        max-height: 200px;
    }
}

@media (max-width: 480px) {

    .service-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .charge-amounts {
        grid-template-columns: repeat(2, 1fr);
    }

    .order-card__info-item {
        flex: 0 0 100%;
    }

    .order-filter__select {
        flex: 0 0 100%;
        width: 100%;
    }

    .login-modal__btns {
        flex-direction: column;
    }
}

.right-banner__slider {
    cursor: pointer;
}

.right-banner__slide {
    display: none;
}

.right-banner__slide img {
    width: 100%;
}

.right-banner__pagination {
    position: absolute;
    bottom: 12px;
    right: 16px;
    background: rgba(0,0,0,0.4);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
}

.charge-panel[hidden] {
    display: none;
}

.charge-notice {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid var(--color-line);
    border-radius: 10px;
    line-height: 1.7;
}

.charge-history__header {
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--color-line);
}

.charge-history__title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.charge-history .charge-history__title {
    margin: 0;
    color: var(--color-text);
}

.charge-history__count {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    white-space: nowrap;
}

.charge-history__desc {
    margin: 0;
    color: #666;
    line-height: 1.55;
}

.charge-history__empty {
    padding: 36px 20px;
    border: 1px dashed #dcdcdc;
    border-radius: 10px;
    background: #fafafa;
    text-align: center;
}

.charge-history__empty-title {
    margin: 0 0 6px 0;
    font-size: 15px;
    font-weight: 600;
    color: #444;
}

.charge-history__empty-sub {
    margin: 0;
    font-size: 13px;
    color: #888;
}

.charge-history__list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.charge-history__item {
    padding: 18px 20px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #fff;
    line-height: 1.5;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.charge-history__item:hover {
    border-color: #d4d4d4;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.charge-history__item.is-highlighted {
    border-color: #e29b9b;
    background: #fffafa;
}

.charge-history__date {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
}

.charge-history__item-title {
    margin: 0 0 10px 0;
    font-size: 15.5px;
    font-weight: 700;
    color: #212529;
}

.charge-history__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    margin-bottom: 14px;
}

.charge-history__badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #e0e0e0;
}

.charge-history__badge--PENDING {
    background: #fff0f0;
    color: var(--color-red, #BA0000);
    border-color: #ffd5d5;
}

.charge-history__badge--CONFIRMED {
    background: #e8f5e9;
    color: #2e7d32;
    border-color: #c8e6c9;
}

.charge-history__badge--CANCELLED {
    background: #f5f5f5;
    color: #757575;
    border-color: #e0e0e0;
}

.charge-history__badge--FAILED {
    background: #ffebee;
    color: #c62828;
    border-color: #ffcdd2;
}

.charge-history__depositor {
    font-size: 12.5px;
    color: #666;
    font-weight: 500;
}

.charge-history__method {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid #e2e2e2;
    background: #fff;
    color: #777;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.4;
}

.charge-history__confirmed {
    font-size: 12px;
    color: #2e7d32;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.charge-history__metrics {
    display: grid;
    grid-template-columns: minmax(150px, 1.85fr) repeat(4, minmax(0, 1fr));
    gap: 10px 12px;
    align-items: end;
    padding: 12px 14px;
    background: #f7f7f7;
    border-radius: 8px;
}

.charge-history__metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.charge-history__metric-lbl {
    font-size: 11px;
    color: #888;
    font-weight: 500;
    white-space: nowrap;
}

.charge-history__metric-val {
    font-size: 13px;
    font-weight: 700;
    color: #212529;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.charge-history__metric-val--accent {
    color: var(--color-red, #BA0000);
}

.charge-history__no-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.charge-history__number {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.charge-history__btn-copy {
    flex-shrink: 0;
    padding: 2px 7px;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    background: #fff;
    color: #666;
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.charge-history__btn-copy:hover {
    background: #f0f0f0;
    border-color: #c2c2c2;
    color: #222;
}

.charge-history__btn-cancel {
    min-height: 2.5rem;
    margin-top: 0.75rem;
    padding: 0.4rem 0.75rem;
    color: #a11e30;
    border: 1px solid #d68c95;
    border-radius: 0.5rem;
    background: #fff;
    font: inherit;
    cursor: pointer;
}

.charge-dialog {
    width: min(28rem, calc(100% - 2rem));
    max-height: calc(100% - 2rem);
    overflow: auto;
    padding: 1.5rem;
    border: 1px solid #d8dce2;
    border-radius: 1rem;
    margin: auto;
    color: #18212f;
    background: #fff;
}

.charge-dialog::backdrop {
    background: rgb(15 23 42 / 55%);
}

.charge-dialog:not(.charge-dialog--account) h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.charge-dialog__details {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.charge-dialog__details > div {
    display: grid;
    grid-template-columns: 6rem minmax(0, 1fr);
    gap: 0.5rem;
}

.charge-dialog__details dd {
    margin: 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.charge-dialog__unpaid {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.charge-dialog__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}

.charge-dialog__buttons button {
    min-height: 2.75rem;
    padding: 0.5rem 0.9rem;
    border: 1px solid #d8dce2;
    border-radius: 0.5rem;
    background: #fff;
    color: #18212f;
}

.charge-dialog__buttons .charge-dialog__primary {
    border-color: #18212f;
    background: #18212f;
    color: #fff;
}

.charge-dialog__buttons button:disabled {
    opacity: 0.55;
}

.charge-dialog--account {
    --charge-dialog-accent: var(--color-red, #ba0000);
    width: min(29rem, calc(100% - 2rem));
    padding: clamp(1rem, 5vw, 1.75rem);
    box-sizing: border-box;
    border-radius: 1.25rem;
    box-shadow: 0 1.25rem 3.5rem rgb(15 23 42 / 24%);
}

.charge-dialog--account h2 {
    font-weight: normal;
    line-height: 1.35;
    margin-bottom: 1.25rem;
}

.charge-dialog--account .charge-dialog__details {
    gap: 0;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    background: #f6f7f9;
}

.charge-dialog--account .charge-dialog__details > div {
    grid-template-columns: minmax(5rem, max-content) minmax(0, 1fr);
    align-items: baseline;
    padding: 0.7rem 0;
    border-bottom: 1px solid #e1e4ea;
}

.charge-dialog--account .charge-dialog__details > div:last-child {
    border-bottom: 0;
}

.charge-dialog--account dt {
    color: #525c6b;
}

.charge-dialog--account dd {
    text-align: right;
    font-weight: normal;
}

.charge-dialog--account .charge-dialog__total dt,
.charge-dialog--account .charge-dialog__total dd {
    color: var(--charge-dialog-accent);
}

.charge-dialog--account .charge-dialog__buttons {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
}

.charge-dialog--account .charge-dialog__buttons button {
    min-height: 3rem;
    border-radius: 999px;
    font-weight: normal;
    cursor: pointer;
}

.charge-dialog--account .charge-dialog__buttons button:focus-visible {
    outline: 2px solid var(--charge-dialog-accent);
    outline-offset: 3px;
}

.charge-dialog--account .charge-dialog__buttons button:disabled {
    cursor: wait;
}

.charge-dialog--account .charge-dialog__primary {
    border-color: var(--charge-dialog-accent);
    background: var(--charge-dialog-accent);
}

.charge-dialog--account .charge-dialog__primary:hover:not(:disabled) {
    border-color: #900000;
    background: #900000;
}

@media (max-width: 1520px) and (min-width: 1201px), (max-width: 640px) {
    .charge-history__metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .charge-history__metric--no {
        grid-column: 1 / -1;
        padding-bottom: 8px;
        border-bottom: 1px dashed #e3e3e3;
    }
}

@media (max-width: 480px) {
    .charge-history__item {
        padding: 16px;
    }
}

.order-step__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.order-step__header .order-step__label {
    margin-bottom: 0;
}

.order-same-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    user-select: none;
}

.order-same-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--color-red, #BA0000);
    cursor: pointer;
}

.order-address {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.order-address__row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.order-address__zip {
    max-width: 180px;
}

.order-address__btn {
    flex-shrink: 0;
    padding: 12px 20px;
    border: 1px solid var(--color-red, #BA0000);
    border-radius: 20px;
    background: #fff3f3;
    color: var(--color-red, #BA0000);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.order-address__btn:hover {
    background: var(--color-red, #BA0000);
    color: #fff;
}

.order-input[readonly] {
    background: #f9f9f9;
    cursor: pointer;
}

@media (max-width: 480px) {
    .order-address__row {
        flex-wrap: wrap;
    }
    .order-address__zip {
        max-width: none;
        flex: 1 1 120px;
    }
}

/* 珥덇린 ?④? ?곹깭 (JS媛 style.display濡??쒖떆/?④????쒖뼱) */
.u-hidden {
    display: none;
}
