.checkout-layout { display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:24px; align-items:start; }
.checkout-main-column,.checkout-side-column{ display:grid; gap:16px; }
.checkout-card h2,.contract-box h2,.complete-box h2{ margin:0 0 18px; font-size:24px; }
.checkout-product-item{ display:grid; grid-template-columns:96px 1fr auto; gap:16px; align-items:center; }
.checkout-product-thumb img{ width:96px; height:96px; object-fit:cover; border-radius:8px; }
.checkout-product-name{ font-size:18px; font-weight:700; margin-bottom:8px; }
.checkout-product-meta{ font-size:14px; color:#666; line-height:1.7; }
.checkout-product-price{ font-size:24px; font-weight:800; }
.price-row{ display:flex; justify-content:space-between; align-items:center; padding:8px 0; font-size:15px; }
.price-row.total{ margin-top:8px; padding-top:18px; border-top:1px solid #ddd; font-size:18px; }
.price-row.total strong{ font-size:26px; }
.sticky-summary-box{ position:sticky; top:20px; }
.agreement-box,.session-linkage-box{ display:grid; gap:12px; }
.session-info-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.session-info-grid div,.complete-key-grid div,.detail-grid div{ border:1px solid #ececec; border-radius:10px; padding:14px 16px; background:#fafafa; display:grid; gap:6px; }
.session-info-grid strong,.complete-key-grid strong,.detail-grid strong{ font-size:13px; color:#666; }
.order-alert-message{ padding:14px 16px; border:1px solid #f0b5b5; background:#fff5f5; color:#c62828; border-radius:10px; }
.helper-text{ margin-top:12px; font-size:13px; line-height:1.6; color:#666; }
.field-message{ margin-top:8px; font-size:13px; line-height:1.4; }
.field-message.error{ color:#e53935; }
.field-message.success{ color:#2e7d32; }
.input-error{ border-color:#e53935 !important; }
.checkout-page .guest-password-box{ border:1px solid #d9d9d9; padding:0; box-sizing:border-box; }
.checkout-page .guest-password-box h2{ margin:0; padding:22px 28px; font-size:20px; font-weight:700; line-height:1.4; color:#111; border-bottom:1px solid #d9d9d9; }
.checkout-page .guest-password-wrap{ padding:24px 28px 28px; box-sizing:border-box; }
.checkout-page .password-inline-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; align-items:start; }
.checkout-page .guest-password-label-inline{ margin-bottom:10px; font-size:16px; font-weight:600; line-height:1.4; color:#222; }
.checkout-page .guest-password-box .guest-password-input{ display:block; width:100%; height:52px; padding:0 16px; border:1px solid #d8d8d8; background:#fff; box-sizing:border-box; font-size:16px !important; line-height:1.4; color:#111; border-radius:6px; }
.checkout-page .guest-password-guide{ margin-top:10px; font-size:14px; line-height:1.5; color:#666; word-break:keep-all; }
.complete-box,.contract-box{ max-width:900px; margin:20px auto; }
.narrow-container{ /*max-width:960px;*/justify-content: center; align-items: center;}
.complete-badge{ display:inline-block; margin-bottom:14px; padding:6px 12px; border-radius:999px; background:#eaf7ed; color:#1b8d3a; font-size:12px; font-weight:700; }
.complete-desc,.contract-desc{ margin:0 0 22px; color:#666; line-height:1.7; }
.complete-key-grid,.detail-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.detail-grid .full{ grid-column:1 / -1; }
.complete-amount-box{ display:flex; justify-content:space-between; align-items:center; margin:22px 0; padding:18px 20px; background:#111; color:#fff; border-radius:14px; }
.complete-amount-box strong{ font-size:30px; }
.complete-notice-box{ padding:18px 20px; border:1px dashed #cfcfcf; border-radius:12px; background:#fcfcfc; line-height:1.7; }
.button-row{ display:flex; gap:12px; flex-wrap:wrap; margin-top:24px; }
.button-row.center{ justify-content:center; }
.contract-result-layout{ display:grid; grid-template-columns:280px minmax(0,1fr); gap:24px; }
.contract-list{ display:grid; gap:10px; }
.contract-list-item{ display:grid; gap:6px; padding:14px; border:1px solid #e5e5e5; border-radius:12px; text-decoration:none; color:#111; background:#fff; }
.contract-list-item.active{ border-color:#20a133; box-shadow:0 0 0 2px rgba(32,161,51,0.1); }
.sub-title{ margin:28px 0 12px; font-size:18px; }
.contract-item-table{ border:1px solid #ececec; border-radius:12px; overflow:hidden; }
.contract-item-table .row{ display:grid; grid-template-columns:1.5fr 1.2fr .5fr .8fr; gap:12px; padding:14px 16px; border-top:1px solid #f0f0f0; }
.contract-item-table .row.head{ background:#fafafa; font-weight:700; border-top:0; }
.contract-form-grid{ display:grid; gap:14px; }
.primary-button.large-button{ width:100%; justify-content:center; padding:16px 20px; }
@media (max-width: 900px){ .checkout-layout,.contract-result-layout{ grid-template-columns:1fr; } .sticky-summary-box{ position:static; } }
@media (max-width: 768px){ .checkout-page .password-inline-grid,.complete-key-grid,.detail-grid,.session-info-grid{ grid-template-columns:1fr; } .checkout-page .guest-password-box h2{ padding:18px 20px; font-size:18px; } .checkout-page .guest-password-wrap{ padding:18px 20px 22px; } .checkout-page .guest-password-label-inline{ margin-bottom:8px; font-size:15px; } }
@media (max-width: 640px){ .checkout-product-item,.contract-item-table .row{ grid-template-columns:1fr; } .checkout-product-price{ text-align:left; } .complete-amount-box{ align-items:flex-start; flex-direction:column; gap:8px; } }


@media (min-width: 769px) {
    .shop-container,
    .header-inner,
    .section-inner,
    .footer-inner,
    .main-visual-inner {
        width: 100%;
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 16px;
        padding-right: 16px;
    }

    /* 상품 상세 상단 2단 구조가 너무 넓으면 비율 조정 */
    .detail-hero {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        align-items: start;
    }

    /* 헤더 메뉴 간격도 조금 축소 */
    .gnb-left {
        gap: 16px;
    }

    .header-icons {
        gap: 10px;
    }

    /* 메인 상품 목록 4칸이 너무 답답하면 2칸으로 */
    .desktop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    /* 기존 큰 패딩 줄이기 */
    .section-inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    .header-inner,
    .footer-inner {
        padding-left: 16px;
        padding-right: 16px;
    }
}
.checkout-page {
    padding: 30px 0 60px;
}

.checkout-page-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.checkout-page-title {
    margin: 0 0 24px;
    font-size: 28px;
    font-weight: 700;
    color: #111;
}

.checkout-section {
    margin-bottom: 16px;
}

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

.section-head.between {
    justify-content: space-between;
}

.section-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #111;
}

.form-grid.two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-row {
    margin-bottom: 16px;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

.input-text,
.input-select,
.input-number,
.textarea-box {
    width: 100%;
    min-height: 48px;
    border: 1px solid #d7d7d7;
    border-radius: 8px;
    background: #fff;
    padding: 0 14px;
    font-size: 15px;
    color: #111;
    box-sizing: border-box;
}

.textarea-box {
    min-height: 96px;
    padding: 12px 14px;
    resize: vertical;
}

.input-number {
    max-width: 140px;
}

.inline-field-group {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.btn-line {
    background: #fff;
    border: 1px solid #222;
    padding: 0 14px;
    height: 48px;
    border-radius: 8px;
    cursor: pointer;
}

.inline-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
}

.qty-row {
    max-width: 180px;
}

.checkout-product-info {
    min-width: 0;
}

.summary-list {
    display: grid;
    gap: 0;
    margin-bottom: 18px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 15px;
    color: #222;
}

.summary-line.total {
    margin-top: 8px;
    padding-top: 18px;
    border-top: 1px solid #ddd;
    border-bottom: 0;
    font-size: 18px;
    font-weight: 700;
}

.summary-line.total strong {
    font-size: 26px;
}

.btn-order-submit {
    width: 100%;
    padding: 16px;
    font-size: 17px;
    font-weight: 700;
    background: #1536b8;
    color: #fff;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.form-alert-message {
    padding: 14px 16px;
    border: 1px solid #f0b5b5;
    background: #fff5f5;
    color: #c62828;
    border-radius: 10px;
}

.same-as-check {
    white-space: nowrap;
}

@media (max-width: 900px) {
    .form-grid.two-column {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .checkout-page-inner {
        padding: 0 14px;
    }

    .checkout-page-title {
        font-size: 24px;
    }

    .inline-field-group {
        grid-template-columns: 1fr;
    }

    .btn-line {
        width: 100%;
    }
}

/* checkout-page patch 20260324 */
.shop-page.checkout-page { padding: 30px 0 60px; }
.checkout-page-inner { max-width: 900px; margin: 0 auto; }
.checkout-page-title { margin: 0 0 24px; font-size: 28px; font-weight: 700; color: #111; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.checkout-main-column, .checkout-side-column { min-width: 0; }
.checkout-section { margin-bottom: 16px; }
.section-head { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px; }
.section-head.between { justify-content:space-between; }
.section-title { margin:0; font-size:20px; font-weight:700; color:#111; }
.form-grid.two-column { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.form-row { margin-bottom:16px; }
.form-row:last-child { margin-bottom:0; }
.form-label { display:block; margin-bottom:8px; font-size:14px; font-weight:600; color:#222; }
.input-text, .input-select, .input-number, .textarea-box { width:100%; min-height:48px; border:1px solid #d7d7d7; border-radius:8px; background:#fff; padding:0 14px; font-size:15px; color:#111; box-sizing:border-box; }
.textarea-box { min-height:96px; padding:12px 14px; resize:vertical; }
.input-number { max-width:140px; }
.inline-field-group { display:grid; grid-template-columns:1fr auto; gap:8px; }
.btn-line { background:#fff; border:1px solid #222; padding:0 14px; height:48px; border-radius:8px; cursor:pointer; }
.inline-check { display:inline-flex; align-items:center; gap:8px; font-size:14px; color:#333; }
.qty-row { max-width:180px; }
.checkout-product-item { display:grid; grid-template-columns:110px minmax(0,1fr); gap:18px; }
.checkout-product-thumb { width:110px; height:110px; border-radius:12px; overflow:hidden; border:1px solid #eee; background:#fafafa; }
.checkout-product-thumb img { width:100%; height:100%; object-fit:cover; }
.checkout-product-info { min-width:0; }
.checkout-product-name { font-size:20px; font-weight:700; color:#111; margin-bottom:8px; }
.checkout-product-meta { font-size:14px; color:#666; margin-bottom:8px; }
.option-summary-box { margin-top:14px; padding:14px 16px; border:1px solid #efefef; border-radius:12px; background:#fafafa; }
.option-summary-line { display:flex; justify-content:space-between; gap:12px; margin-bottom:8px; font-size:14px; color:#444; }
.option-summary-line:last-child { margin-bottom:0; }
.summary-list { display:grid; gap:0; margin-bottom:18px; }
.summary-line { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid #eee; font-size:15px; color:#222; }
.summary-line.total { margin-top:8px; padding-top:18px; border-top:1px solid #ddd; border-bottom:0; font-size:18px; font-weight:700; }
.summary-line.total strong { font-size:26px; }
.btn-order-submit { width:100%; padding:16px; font-size:17px; font-weight:700; background:#1536b8; color:#fff; border:0; border-radius:8px; cursor:pointer; }
.form-alert-message { padding:14px 16px; border:1px solid #f0b5b5; background:#fff5f5; color:#c62828; border-radius:10px; margin-bottom:16px; }
.same-as-check { white-space:nowrap; }
.campaign-session-box { display:flex; flex-wrap:wrap; gap:12px; font-size:13px; color:#666; }
.field-message.error { color:#d32f2f; margin-top:8px; }
.field-message.success { color:#2e7d32; margin-top:8px; }
.input-error { border-color:#d32f2f !important; }
@media (max-width: 1024px) { .checkout-layout { grid-template-columns:1fr; } .sticky-summary-box { position:static; } }
@media (max-width: 900px) { .form-grid.two-column { grid-template-columns:1fr; } }
@media (max-width: 768px) { .checkout-page-title { font-size:24px; } .inline-field-group { grid-template-columns:1fr; } .btn-line { width:100%; } .checkout-product-item { grid-template-columns:1fr; } .checkout-product-thumb { width:100%; height:220px; } }

/* footer 텍스트 스타일 */
.shop-site-footer p {
    text-align: center;
    font-size: 16px;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .shop-site-footer p {
        font-size: 12px;
    }
}
/* claim ui patch */
.claim-guide-text{margin:0 0 16px;color:#666;line-height:1.7;font-size:14px;}
.contract-claim-form{margin-top:6px;display:grid;gap:16px;}
.claim-form-grid{display:grid;gap:14px;}
.claim-label{display:block;margin-bottom:8px;font-size:14px;font-weight:700;color:#222;}
.shop-textarea{width:100%;min-height:120px;padding:14px 16px;border:1px solid #d7d7d7;border-radius:10px;background:#fff;font-size:14px;color:#111;resize:vertical;box-sizing:border-box;}
.shop-input-file{display:block;width:100%;padding:12px 14px;border:1px solid #d7d7d7;border-radius:10px;background:#fff;box-sizing:border-box;}
.claim-file-help{display:block;margin-top:8px;color:#777;font-size:12px;}
.claim-success-message{padding:14px 16px;border:1px solid #b8dfc0;background:#f3fff4;color:#157534;border-radius:10px;}
.claim-history-list{display:grid;gap:14px;}
.claim-history-card{border:1px solid #e8e8e8;border-radius:16px;background:#fff;padding:18px;display:grid;gap:14px;}
.claim-history-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;}
.claim-type-badge,.claim-status-badge,.claim-writer-badge{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:4px 12px;border-radius:999px;font-size:12px;font-weight:700;}
.claim-type-badge{margin-left:8px;background:#eef4ff;color:#2953b8;}
.claim-status-badge{margin-left:6px;background:#f5f5f5;color:#444;}
.claim-writer-badge.customer{background:#edf9ee;color:#187a2c;}
.claim-writer-badge.admin{background:#fff3e8;color:#a85a11;}
.claim-history-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.claim-history-grid>div{border:1px solid #ececec;border-radius:10px;padding:14px 16px;background:#fafafa;display:grid;gap:6px;}
.claim-history-grid strong{font-size:13px;color:#666;}
.claim-image-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.claim-image-thumb-link{display:block;border-radius:12px;overflow:hidden;border:1px solid #e5e5e5;background:#fff;}
.claim-image-thumb{width:100%;aspect-ratio:1 / 1;object-fit:cover;display:block;}
.empty-claim-box{padding:24px 18px;border:1px dashed #d8d8d8;border-radius:14px;background:#fafafa;color:#666;text-align:center;}
@media (max-width: 768px){
  .claim-history-grid{grid-template-columns:1fr;}
  .claim-image-gallery{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width: 480px){
  .claim-history-head{align-items:flex-start;}
  .claim-image-gallery{grid-template-columns:1fr;}
}
