/* 중앙쿠포니 모바일 반응형 최종 보완 */
:root {
    --coupon-mobile-header-height: 58px;
    --coupon-mobile-safe-bottom: env(safe-area-inset-bottom, 0px);
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body.coupon-mobile-menu-open {
    overflow: hidden;
    touch-action: none;
}

.coupon-mobile-menu-toggle,
.coupon-mobile-menu-close,
.coupon-mobile-sidebar-head,
.coupon-mobile-menu-overlay,
.coupon-mobile-top-button,
.coupon-table-scroll-hint {
    display: none;
}

.coupon-content,
.coupon-card,
.coupon-form-card,
.coupon-policy-card,
.coupon-table-wrap {
    min-width: 0;
}

.coupon-card img,
.coupon-policy-card img,
.cp-home img {
    max-width: 100%;
    height: auto;
}

.coupon-table-wrap {
    position: relative;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.coupon-table-wrap.is-scrollable::after {
    content: "";
    position: sticky;
    right: 0;
    display: block;
    width: 24px;
    height: 1px;
    margin-left: auto;
    pointer-events: none;
}

.coupon-table-scroll-hint {
    margin: 0 0 8px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.coupon-mobile-top-button {
    position: fixed;
    right: 16px;
    bottom: calc(18px + var(--coupon-mobile-safe-bottom));
    z-index: 1200;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .26);
    font-size: 21px;
    font-weight: 900;
    cursor: pointer;
}

.coupon-mobile-top-button:not([hidden]) {
    display: inline-flex;
}

/* 중앙 메인 화면 */
.cp-home .cp-region-category-tabs {
    scrollbar-width: thin;
}

.cp-home .cp-region-card,
.cp-home .cp-flow-item,
.cp-home .cp-btn,
.cp-home .cp-region-link {
    min-width: 0;
}


/* 중앙 홈 모바일 전용 상담 신청 버튼 */
.cp-mobile-merchant-apply-action {
    display: none;
}

/* 독립 로그인 화면 */
.couponi-login-card input,
.couponi-login-card button,
.couponi-login-card a {
    touch-action: manipulation;
}

@media (max-width: 900px) {
    /* 테마의 실제 메뉴 구조와 관계없이 JS가 찾아 표시한 기존 상담 메뉴를 숨깁니다. */
    .couponi-legacy-merchant-apply-hidden {
        display: none !important;
    }

    /* 그누보드 기본 GNB의 단일 상담 메뉴가 검색창 아래에 어색하게 남는 현상 방지 */
    #gnb,
    #gnb_all,
    .gnb_wrap {
        display: none !important;
    }

    .cp-mobile-merchant-apply-action {
        display: block;
        margin-top: 18px;
    }

    .cp-mobile-merchant-apply-action .cp-btn {
        width: 100%;
        min-height: 48px;
        border-color: #cbd5e1;
        background: #fff;
        color: #1d4ed8;
        box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
    }

    body {
        overflow-x: hidden;
    }

    .coupon-app {
        width: 100%;
        overflow-x: hidden;
    }

    .coupon-topbar {
        position: sticky;
        top: 0;
        z-index: 1100;
        min-height: 58px;
        height: auto;
        padding: 9px 12px;
        align-items: center;
        gap: 8px;
        box-shadow: 0 3px 16px rgba(15, 23, 42, .16);
    }

    .coupon-topbar-left {
        flex: 1 1 auto;
        min-width: 0;
        flex-wrap: nowrap;
        gap: 9px;
    }

    .coupon-topbar-right {
        flex: 0 0 auto;
        max-width: 46%;
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .coupon-topbar-right::-webkit-scrollbar {
        display: none;
    }

    .coupon-mobile-menu-toggle {
        display: inline-flex;
        flex: 0 0 auto;
        min-height: 42px;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 0 12px;
        border: 1px solid rgba(255, 255, 255, .28);
        border-radius: 10px;
        background: rgba(255, 255, 255, .08);
        color: #fff;
        font-size: 14px;
        font-weight: 800;
        cursor: pointer;
    }

    .coupon-brand {
        flex: 0 0 auto;
        font-size: 17px;
    }

    .coupon-page-title {
        min-width: 0;
        max-width: 32vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 12px;
    }

    .coupon-top-link {
        min-height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 10px;
    }

    .coupon-login-user {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .coupon-layout {
        display: block;
        min-height: calc(100dvh - 58px);
    }

    .coupon-mobile-menu-overlay {
        position: fixed;
        inset: 0;
        z-index: 1150;
        background: rgba(15, 23, 42, .52);
        backdrop-filter: blur(2px);
    }

    .coupon-mobile-menu-overlay:not([hidden]) {
        display: block;
    }

    .coupon-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 1160;
        width: min(86vw, 340px);
        max-width: 340px;
        height: 100dvh;
        padding: 0 14px calc(22px + var(--coupon-mobile-safe-bottom));
        overflow-y: auto;
        border-right: 1px solid #e5e7eb;
        border-bottom: 0;
        transform: translateX(-105%);
        transition: transform .2s ease;
        box-shadow: 18px 0 42px rgba(15, 23, 42, .22);
    }

    body.coupon-mobile-menu-open .coupon-sidebar {
        transform: translateX(0);
    }

    .coupon-mobile-sidebar-head {
        position: sticky;
        top: 0;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 62px;
        margin: 0 -14px 16px;
        padding: 0 14px;
        border-bottom: 1px solid #e5e7eb;
        background: rgba(255, 255, 255, .96);
        backdrop-filter: blur(8px);
    }

    .coupon-mobile-sidebar-head strong {
        font-size: 18px;
    }

    .coupon-mobile-menu-close {
        display: inline-flex;
        width: 42px;
        height: 42px;
        align-items: center;
        justify-content: center;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        background: #fff;
        color: #111827;
        font-size: 28px;
        line-height: 1;
        cursor: pointer;
    }

    .coupon-menu-group {
        margin-bottom: 22px;
    }

    .coupon-menu-title {
        margin-left: 4px;
    }

    .coupon-side-link {
        display: flex;
        min-height: 46px;
        align-items: center;
        margin: 0 0 6px;
        padding: 11px 13px;
        border: 1px solid #edf0f4;
        background: #fff;
    }

    .coupon-content {
        width: 100%;
        max-width: none;
        padding: 16px 12px calc(30px + var(--coupon-mobile-safe-bottom));
    }

    .coupon-content-head {
        margin-bottom: 14px;
    }

    .coupon-content-head h1 {
        font-size: clamp(22px, 6vw, 28px);
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .coupon-content-head p {
        line-height: 1.55;
        overflow-wrap: anywhere;
    }

    .coupon-card,
    .coupon-form-card,
    .coupon-policy-card {
        padding: 16px;
        border-radius: 14px;
        margin-bottom: 12px;
    }

    .coupon-card h2,
    .coupon-policy-card h2 {
        font-size: 18px;
        line-height: 1.35;
    }

    .coupon-card p,
    .coupon-policy-card p,
    .coupon-policy-card li {
        line-height: 1.65;
        overflow-wrap: anywhere;
    }

    .coupon-grid,
    .coupon-dashboard-grid,
    .coupon-form-grid,
    .coupon-form-grid-2,
    .coupon-form-grid-3 {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .coupon-form-row,
    .coupon-form-grid > label,
    .coupon-form-card label {
        min-width: 0;
    }

    .coupon-form-row input,
    .coupon-form-row textarea,
    .coupon-form-row select,
    .coupon-form-grid input,
    .coupon-form-grid textarea,
    .coupon-form-grid select,
    .coupon-form-card input,
    .coupon-form-card textarea,
    .coupon-form-card select,
    .coupon-search-form input,
    .coupon-search-form select {
        width: 100%;
        min-height: 48px;
        font-size: 16px;
    }

    .coupon-form-card textarea,
    .coupon-form-grid textarea {
        min-height: 120px;
        resize: vertical;
    }

    .coupon-form-actions,
    .coupon-search-form,
    .coupon-page-head,
    .merchant-ad-actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    .coupon-btn,
    .coupon-form-actions .coupon-btn,
    .coupon-search-form .coupon-btn,
    .coupon-page-head .coupon-btn {
        width: 100%;
        min-height: 46px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        white-space: normal;
        text-align: center;
        line-height: 1.35;
    }

    .coupon-check-label,
    .coupon-check-line,
    .coupon-inline-check {
        min-height: 44px;
        align-items: center;
        padding: 8px 0;
    }

    .coupon-check-label input,
    .coupon-check-line input,
    .coupon-inline-check input,
    input[type="checkbox"],
    input[type="radio"] {
        width: 20px !important;
        height: 20px !important;
        flex: 0 0 20px;
    }

    .coupon-table-wrap {
        margin-left: -2px;
        margin-right: -2px;
        padding-bottom: 6px;
        border-radius: 10px;
        background: linear-gradient(90deg, rgba(15,23,42,.08), transparent 14px) left/22px 100% no-repeat,
                    linear-gradient(270deg, rgba(15,23,42,.08), transparent 14px) right/22px 100% no-repeat;
    }

    .coupon-table-scroll-hint {
        display: block;
    }

    .coupon-table {
        display: table;
        width: max-content;
        min-width: 100%;
        white-space: nowrap;
        font-size: 13px;
    }

    .coupon-table th,
    .coupon-table td {
        padding: 10px 9px;
        max-width: 280px;
    }

    .coupon-table td {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .coupon-table .coupon-action-cell,
    .coupon-table .coupon-table-actions {
        min-width: 92px;
    }

    .coupon-delete-form .coupon-btn,
    .coupon-action-cell .coupon-btn {
        width: auto;
        min-width: 72px;
    }

    .coupon-policy-footer {
        justify-content: center;
        text-align: center;
        line-height: 1.8;
    }

    /* 중앙 메인 */
    .cp-home {
        overflow-x: hidden;
    }

    .cp-home-wrap {
        width: 100%;
        max-width: none;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .cp-hero {
        padding: 28px 0 26px !important;
    }

    .cp-hero-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    .cp-hero h1 {
        font-size: clamp(30px, 9vw, 40px) !important;
        line-height: 1.15 !important;
        letter-spacing: -.055em !important;
        overflow-wrap: anywhere;
    }

    .cp-hero-desc {
        max-width: none;
        font-size: 15px !important;
        line-height: 1.65;
    }

    .cp-hero-panel {
        width: 100%;
        max-width: none !important;
        padding: 15px;
        border-radius: 18px;
    }

    .cp-flow-item {
        padding: 12px;
    }

    .cp-section {
        padding: 24px 0 26px !important;
    }

    .cp-section-head h2 {
        font-size: 25px;
    }

    .cp-region-category-tabs {
        display: flex;
        width: calc(100% + 30px);
        margin-left: -15px !important;
        margin-right: -15px !important;
        padding: 0 15px 8px;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .cp-region-category-tabs::-webkit-scrollbar {
        display: none;
    }

    .cp-region-category-btn {
        flex: 0 0 auto;
        min-width: 82px !important;
        min-height: 42px;
    }

    .cp-region-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .cp-region-card {
        padding: 16px;
        border-radius: 17px;
    }

    .cp-region-card p {
        min-height: 0 !important;
    }

    .cp-region-link,
    .cp-btn {
        width: 100%;
        min-height: 48px;
    }

    /* 독립 로그인 */
    .couponi-login-wrap {
        min-height: 100dvh;
        padding: max(12px, env(safe-area-inset-top)) 12px calc(12px + var(--coupon-mobile-safe-bottom));
        display: flex;
        align-items: center;
    }

    .couponi-login-card {
        width: 100%;
        min-height: 0 !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 18px !important;
        padding: 24px 18px !important;
        box-shadow: 0 16px 42px rgba(15, 23, 42, .08) !important;
    }

    .couponi-login-card h1 {
        font-size: 28px !important;
    }

    .couponi-input,
    .couponi-btn-main {
        min-height: 54px;
        font-size: 16px;
    }

    .couponi-row {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .couponi-sub-actions {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .coupon-page-title {
        display: none;
    }

    .coupon-topbar-right {
        max-width: 42%;
    }

    .coupon-login-user {
        display: none;
    }

    .coupon-mobile-menu-toggle span:last-child {
        display: none;
    }

    .coupon-mobile-menu-toggle {
        width: 44px;
        padding: 0;
    }

    .coupon-content {
        padding-left: 10px;
        padding-right: 10px;
    }

    .coupon-card,
    .coupon-form-card,
    .coupon-policy-card {
        padding: 14px;
    }

    .couponi-sub-actions {
        grid-template-columns: 1fr;
    }

    .cp-hero h1 {
        font-size: 30px !important;
    }
}

@media (max-width: 900px) and (orientation: landscape) and (max-height: 520px) {
    .coupon-sidebar {
        width: min(72vw, 340px);
    }

    .couponi-login-wrap {
        align-items: flex-start;
    }
}

@media print {
    .coupon-mobile-menu-toggle,
    .coupon-mobile-menu-overlay,
    .coupon-mobile-sidebar-head,
    .coupon-mobile-top-button,
    .coupon-topbar,
    .coupon-sidebar {
        display: none !important;
    }

    .coupon-content {
        max-width: none;
        width: 100%;
        padding: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* 중앙쿠포니 가맹 상담 신청 화면 현대화 */
.merchant-apply-shell {
    width: min(100%, 980px);
    margin: 0 auto;
}

.merchant-apply-alert {
    display: grid;
    gap: 5px;
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

.merchant-apply-alert strong {
    font-size: 15px;
}

.merchant-apply-alert span {
    line-height: 1.55;
}

.merchant-apply-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
    gap: 32px;
    align-items: center;
    margin-bottom: 20px;
    padding: 38px;
    border: 1px solid #dbeafe;
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0%, rgba(59, 130, 246, .18), transparent 34%),
        linear-gradient(135deg, #eff6ff 0%, #ffffff 52%, #ecfeff 100%);
    box-shadow: 0 20px 50px rgba(30, 64, 175, .10);
}

.merchant-apply-hero::before {
    content: "";
    position: absolute;
    left: -70px;
    bottom: -100px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(37, 99, 235, .06);
    pointer-events: none;
}

.merchant-apply-hero-copy,
.merchant-apply-benefits {
    position: relative;
    z-index: 1;
}

.merchant-apply-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-bottom: 16px;
    padding: 0 12px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: rgba(255, 255, 255, .82);
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -.01em;
}

.merchant-apply-hero h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(28px, 3.1vw, 42px);
    line-height: 1.2;
    letter-spacing: -.045em;
}

.merchant-apply-hero-copy > p {
    max-width: 620px;
    margin: 18px 0 0;
    color: #475569;
    font-size: 16px;
    line-height: 1.75;
}

.merchant-apply-benefits {
    display: grid;
    gap: 10px;
}

.merchant-apply-benefit {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(203, 213, 225, .9);
    border-radius: 15px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}

.merchant-apply-benefit-no {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #0f172a;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.merchant-apply-benefit div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.merchant-apply-benefit strong {
    color: #0f172a;
    font-size: 15px;
}

.merchant-apply-benefit span:last-child {
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}

.merchant-apply-form {
    padding: 34px;
    border-color: #e2e8f0;
    border-radius: 24px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .08);
}

.merchant-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.merchant-form-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.merchant-form-heading h2 {
    margin: 7px 0 6px;
    color: #0f172a;
    font-size: 23px;
    letter-spacing: -.025em;
}

.merchant-form-heading p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.55;
}

.merchant-form-heading p strong {
    color: #334155;
}

.merchant-form-step {
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
}

.merchant-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 19px 18px;
}

.merchant-field {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.merchant-field-full {
    grid-column: 1 / -1;
}

.merchant-field-label {
    color: #334155;
    font-size: 14px;
    font-weight: 800;
}

.merchant-field-label em {
    color: #dc2626;
    font-style: normal;
}

.merchant-field input,
.merchant-field textarea,
.merchant-field select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.merchant-field input,
.merchant-field select {
    min-height: 50px;
    padding: 0 14px;
}

.merchant-field textarea {
    min-height: 170px;
    padding: 14px;
    resize: vertical;
    line-height: 1.65;
}

.merchant-field input::placeholder,
.merchant-field textarea::placeholder {
    color: #94a3b8;
}

.merchant-field input:hover,
.merchant-field textarea:hover,
.merchant-field select:hover {
    border-color: #94a3b8;
}

.merchant-field input:focus,
.merchant-field textarea:focus,
.merchant-field select:focus {
    outline: 0;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
    background: #fff;
}

.merchant-field input:invalid:not(:placeholder-shown),
.merchant-field textarea:invalid:not(:placeholder-shown) {
    border-color: #fca5a5;
}

.merchant-field-help {
    color: #64748b;
    font-size: 12px;
    line-height: 1.55;
}

.merchant-form-divider {
    height: 1px;
    margin: 30px 0;
    background: linear-gradient(90deg, transparent, #cbd5e1 12%, #cbd5e1 88%, transparent);
}

.merchant-form-heading-sub {
    margin-bottom: 16px;
}

.merchant-consent-box {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 12px;
    align-items: flex-start;
    margin-top: 22px;
    padding: 16px 17px;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    background: #f8fbff;
    cursor: pointer;
}

.merchant-consent-box input {
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    accent-color: #2563eb;
}

.merchant-consent-box > span {
    display: grid;
    gap: 5px;
}

.merchant-consent-box strong {
    color: #1e293b;
    font-size: 14px;
}

.merchant-consent-box small {
    color: #64748b;
    font-size: 12px;
    line-height: 1.55;
}

.merchant-consent-box a {
    color: #1d4ed8;
    font-weight: 700;
}

.merchant-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 26px;
}

.merchant-form-actions .coupon-btn {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
}

.merchant-btn-secondary {
    border-color: #cbd5e1;
    color: #475569;
}

.merchant-btn-submit {
    gap: 24px;
    min-width: 184px;
    border-color: #1d4ed8;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 10px 22px rgba(37, 99, 235, .22);
}

.merchant-btn-submit:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.merchant-apply-note {
    margin: 16px 0 4px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

@media (max-width: 820px) {
    .merchant-apply-hero {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 28px;
    }

    .merchant-apply-benefits {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .merchant-apply-benefit {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .merchant-apply-shell {
        width: 100%;
    }

    .merchant-apply-hero {
        gap: 20px;
        padding: 23px 18px;
        border-radius: 19px;
    }

    .merchant-apply-hero h2 {
        font-size: 29px;
    }

    .merchant-apply-hero-copy > p {
        font-size: 14px;
        line-height: 1.68;
    }

    .merchant-apply-benefits {
        grid-template-columns: 1fr;
    }

    .merchant-apply-benefit {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .merchant-apply-form {
        padding: 23px 17px;
        border-radius: 19px;
    }

    .merchant-form-heading h2 {
        font-size: 21px;
    }

    .merchant-form-grid {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .merchant-field-full {
        grid-column: auto;
    }

    .merchant-field input,
    .merchant-field select {
        min-height: 52px;
        font-size: 16px;
    }

    .merchant-field textarea {
        min-height: 180px;
        font-size: 16px;
    }

    .merchant-consent-box {
        padding: 15px;
    }

    .merchant-form-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .merchant-form-actions .coupon-btn {
        width: 100%;
        min-height: 52px;
    }

    .merchant-btn-submit {
        grid-row: 1;
    }
}


/* =========================================================
   중앙쿠포니 지역 탭·카드 10색 랜덤 테마
   - 색상 클래스는 index.php가 새로고침마다 임의 배정
   - 내용 구조와 링크 동작은 그대로 유지
   ========================================================= */
.cp-home .cp-tone-1  { --cp-tone-bg:#eef6ff; --cp-tone-soft:#dbeafe; --cp-tone-line:#93c5fd; --cp-tone-accent:#2563eb; --cp-tone-ink:#163b73; } /* 블루 */
.cp-home .cp-tone-2  { --cp-tone-bg:#eefbf7; --cp-tone-soft:#d1fae5; --cp-tone-line:#6ee7b7; --cp-tone-accent:#059669; --cp-tone-ink:#065f46; } /* 에메랄드 */
.cp-home .cp-tone-3  { --cp-tone-bg:#fff8eb; --cp-tone-soft:#ffedd5; --cp-tone-line:#fdba74; --cp-tone-accent:#d97706; --cp-tone-ink:#92400e; } /* 오렌지 */
.cp-home .cp-tone-4  { --cp-tone-bg:#f7f2ff; --cp-tone-soft:#ede9fe; --cp-tone-line:#c4b5fd; --cp-tone-accent:#7c3aed; --cp-tone-ink:#5b21b6; } /* 바이올렛 */
.cp-home .cp-tone-5  { --cp-tone-bg:#f0f9ff; --cp-tone-soft:#e0f2fe; --cp-tone-line:#7dd3fc; --cp-tone-accent:#0284c7; --cp-tone-ink:#075985; } /* 스카이 */
.cp-home .cp-tone-6  { --cp-tone-bg:#effcff; --cp-tone-soft:#cffafe; --cp-tone-line:#67e8f9; --cp-tone-accent:#0891b2; --cp-tone-ink:#155e75; } /* 시안 */
.cp-home .cp-tone-7  { --cp-tone-bg:#fffbea; --cp-tone-soft:#fef3c7; --cp-tone-line:#fcd34d; --cp-tone-accent:#ca8a04; --cp-tone-ink:#854d0e; } /* 앰버 */
.cp-home .cp-tone-8  { --cp-tone-bg:#f7fee7; --cp-tone-soft:#ecfccb; --cp-tone-line:#bef264; --cp-tone-accent:#65a30d; --cp-tone-ink:#3f6212; } /* 라임 */
.cp-home .cp-tone-9  { --cp-tone-bg:#f0fdfa; --cp-tone-soft:#ccfbf1; --cp-tone-line:#5eead4; --cp-tone-accent:#0f766e; --cp-tone-ink:#115e59; } /* 틸 */
.cp-home .cp-tone-10 { --cp-tone-bg:#f3f6ff; --cp-tone-soft:#e0e7ff; --cp-tone-line:#a5b4fc; --cp-tone-accent:#4f46e5; --cp-tone-ink:#3730a3; } /* 인디고 */

/* 지역 카테고리 버튼 */
.cp-home .cp-region-category-btn[class*="cp-tone-"] {
    border-color: color-mix(in srgb, var(--cp-tone-line) 76%, #ffffff 24%);
    background: linear-gradient(180deg, #ffffff 0%, var(--cp-tone-bg) 100%);
    color: var(--cp-tone-ink);
    box-shadow:
        0 10px 22px color-mix(in srgb, var(--cp-tone-accent) 10%, transparent),
        inset 0 1px 0 rgba(255,255,255,.9);
}

.cp-home .cp-region-category-btn[class*="cp-tone-"]:hover {
    border-color: var(--cp-tone-line);
    background: var(--cp-tone-soft);
    color: var(--cp-tone-ink);
    transform: translateY(-2px);
    box-shadow: 0 14px 26px color-mix(in srgb, var(--cp-tone-accent) 16%, transparent);
}

.cp-home .cp-region-category-btn[class*="cp-tone-"].active {
    border-color: var(--cp-tone-accent);
    background: linear-gradient(135deg, var(--cp-tone-accent), var(--cp-tone-ink));
    color: #fff;
    box-shadow: 0 14px 30px color-mix(in srgb, var(--cp-tone-accent) 28%, transparent);
}

/* 지역 카드 */
.cp-home .cp-region-card[class*="cp-tone-"] {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-color: color-mix(in srgb, var(--cp-tone-line) 72%, #ffffff 28%);
    background:
        radial-gradient(circle at 96% 0%, color-mix(in srgb, var(--cp-tone-soft) 88%, transparent), transparent 38%),
        linear-gradient(145deg, #ffffff 0%, var(--cp-tone-bg) 100%);
    box-shadow:
        0 16px 34px color-mix(in srgb, var(--cp-tone-accent) 10%, transparent),
        inset 0 1px 0 rgba(255,255,255,.92);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.cp-home .cp-region-card[class*="cp-tone-"]::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--cp-tone-accent), var(--cp-tone-line));
}

.cp-home .cp-region-card[class*="cp-tone-"]::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -54px;
    bottom: -72px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--cp-tone-soft) 68%, transparent);
    pointer-events: none;
}

.cp-home .cp-region-card[class*="cp-tone-"]:hover {
    transform: translateY(-5px);
    border-color: var(--cp-tone-line);
    box-shadow:
        0 22px 44px color-mix(in srgb, var(--cp-tone-accent) 18%, transparent),
        inset 0 1px 0 rgba(255,255,255,.96);
}

.cp-home .cp-region-card[class*="cp-tone-"] .cp-region-name {
    color: var(--cp-tone-ink);
}

.cp-home .cp-region-card[class*="cp-tone-"] .cp-status {
    border: 1px solid color-mix(in srgb, var(--cp-tone-line) 68%, #ffffff 32%);
    background: color-mix(in srgb, var(--cp-tone-soft) 82%, #ffffff 18%);
    color: var(--cp-tone-ink);
}

.cp-home .cp-region-card[class*="cp-tone-"] .cp-region-link:not(.ready) {
    border: 1px solid var(--cp-tone-accent);
    background: linear-gradient(135deg, var(--cp-tone-accent), var(--cp-tone-ink));
    box-shadow: 0 10px 22px color-mix(in srgb, var(--cp-tone-accent) 22%, transparent);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.cp-home .cp-region-card[class*="cp-tone-"] .cp-region-link:not(.ready):hover,
.cp-home .cp-region-card[class*="cp-tone-"] .cp-region-link:not(.ready):focus {
    transform: translateY(-2px);
    filter: saturate(1.08);
    box-shadow: 0 14px 28px color-mix(in srgb, var(--cp-tone-accent) 30%, transparent);
}

.cp-home .cp-region-card[class*="cp-tone-"] .cp-region-link.ready {
    border: 1px solid color-mix(in srgb, var(--cp-tone-line) 55%, #e5e7eb 45%);
    background: rgba(255,255,255,.68);
    color: #7b8798 !important;
}

@media (max-width: 900px) {
    .cp-home .cp-region-card[class*="cp-tone-"]:hover {
        transform: none;
    }

    .cp-home .cp-region-category-btn[class*="cp-tone-"] {
        box-shadow: 0 8px 18px color-mix(in srgb, var(--cp-tone-accent) 9%, transparent);
    }
}

@supports not (color: color-mix(in srgb, #000 50%, #fff 50%)) {
    .cp-home .cp-region-category-btn[class*="cp-tone-"] {
        border-color: var(--cp-tone-line);
    }
    .cp-home .cp-region-card[class*="cp-tone-"] {
        border-color: var(--cp-tone-line);
        box-shadow: 0 16px 34px rgba(15,23,42,.10);
    }
}
