/* BEUNIQ My Page — Astra style guide */
/* Spacing convention: .site-content padding-top/bottom 100px, reset inner Astra wrappers */
body.beuniq-mp-active #primary,
body.beuniq-mp-active .ast-container,
body.beuniq-mp-active .entry-content,
body.beuniq-mp-active article.page,
body.beuniq-mp-active .ast-article-single,
body.beuniq-mp-active .ast-no-sidebar .entry-content,
body.beuniq-mp-active main[id="main"] {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
body.beuniq-mp-active .site-content {
    padding-top: 100px !important;
    padding-bottom: 100px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
/* 마이쇼핑 페이지에서만 Astra 컨테이너 너비 확장 (전역 설정은 건드리지 않음) */
body.beuniq-mp-active .ast-container,
body.beuniq-mp-active #primary,
body.beuniq-mp-active main[id="main"] {
    max-width: 1500px !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
body.beuniq-mp-active .entry-header,
body.beuniq-mp-active .entry-title,
body.beuniq-mp-active .page-title { display: none !important; }

.beuniq-mp {
    --bm-primary: #FF7A3D;
    --bm-primary-h: #FF5100;
    --bm-heading: #1E1810;
    --bm-text: #575250;
    --bm-bg: #F8F5F4;
    --bm-light: #F6F7F8;
    --bm-border: #E5E1DE;
    --bm-dark: #1E1810;
    --bm-navy: #242A56;

    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: 'Work Sans', sans-serif;
    color: var(--bm-text);
    font-size: 16px;
    line-height: 1.6;
}

.beuniq-mp * { box-sizing: border-box; }

/* Breadcrumb */
.beuniq-mp-breadcrumb {
    text-align: right;
    font-size: 13px;
    color: #999;
    margin-bottom: 20px;
}
.beuniq-mp-breadcrumb a { color: #999; text-decoration: none; }
.beuniq-mp-breadcrumb strong { color: var(--bm-heading); font-weight: 600; }
.beuniq-mp-breadcrumb span { margin: 0 6px; color: #ccc; }

/* Title */
.beuniq-mp-title {
    text-align: center;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    color: var(--bm-heading);
    font-size: 36px;
    margin: 30px 0 40px;
}

/* Summary cards */
.beuniq-mp-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--bm-border);
    background: #fff;
    margin-bottom: 50px;
}
.beuniq-mp-summary-card {
    padding: 40px 20px;
    text-align: center;
    border-right: 1px solid var(--bm-border);
}
.beuniq-mp-summary-card:last-child { border-right: none; }
.beuniq-mp-summary-icon {
    color: var(--bm-heading);
    margin-bottom: 18px;
    display: flex;
    justify-content: center;
}
.beuniq-mp-summary-value {
    font-family: 'Open Sans', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--bm-heading);
    margin-bottom: 8px;
}
.beuniq-mp-summary-label {
    font-size: 14px;
    color: var(--bm-text);
}

/* Body grid */
.beuniq-mp-body {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 50px;
}

/* Sidebar */
.beuniq-mp-sidebar-group { margin-bottom: 35px; }
.beuniq-mp-sidebar-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--bm-heading);
    margin: 0 0 14px;
}
.beuniq-mp-sidebar-list { list-style: none; padding: 0; margin: 0; }
.beuniq-mp-sidebar-list li { margin-bottom: 10px; }
.beuniq-mp-sidebar-list a {
    color: var(--bm-text);
    text-decoration: none;
    font-size: 14px;
    display: block;
    padding: 4px 0;
    transition: color .2s;
}
.beuniq-mp-sidebar-list a:hover,
.beuniq-mp-sidebar-list a.is-active {
    color: var(--bm-primary);
    font-weight: 600;
}

/* Main */
.beuniq-mp-main {}
.beuniq-mp-section { margin-bottom: 60px; }
.beuniq-mp-section-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--bm-heading);
    border-bottom: 2px solid var(--bm-heading);
    padding-bottom: 14px;
    margin: 0 0 25px;
}
.beuniq-mp-section-sub {
    font-size: 13px;
    font-weight: 400;
    color: #999;
    margin-left: 8px;
}

/* Status flow (dashboard) */
.beuniq-mp-status-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0 30px;
}
.beuniq-mp-status-step {
    flex: 1;
    text-align: center;
}
.beuniq-mp-status-num {
    font-family: 'Open Sans', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--bm-heading);
    margin-bottom: 8px;
}
.beuniq-mp-status-label {
    font-size: 14px;
    color: var(--bm-text);
}
.beuniq-mp-status-arrow {
    color: #ccc;
    font-size: 18px;
    padding: 0 10px;
}
.beuniq-mp-status-secondary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--bm-border);
    border-bottom: 1px solid var(--bm-border);
}
.beuniq-mp-status-cell {
    padding: 18px;
    text-align: center;
    border-right: 1px solid var(--bm-border);
    font-size: 14px;
}
.beuniq-mp-status-cell:last-child { border-right: none; }
.beuniq-mp-status-cell strong { color: var(--bm-heading); margin-left: 6px; }

/* Tabs */
.beuniq-mp-tabs {
    display: flex;
    border-bottom: 1px solid var(--bm-border);
    margin-bottom: 25px;
}
.beuniq-mp-tab {
    padding: 14px 30px;
    font-size: 14px;
    color: #999;
    text-decoration: none;
    border: 1px solid transparent;
    border-bottom: none;
    margin-bottom: -1px;
    background: transparent;
}
.beuniq-mp-tab.is-active {
    color: var(--bm-heading);
    font-weight: 700;
    border-color: var(--bm-border);
    border-bottom-color: #fff;
    background: #fff;
}

/* Filter (orders) */
.beuniq-mp-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    background: var(--bm-light);
    padding: 18px;
    margin-bottom: 18px;
}
.beuniq-mp-select, .beuniq-mp-date {
    padding: 8px 12px;
    border: 1px solid var(--bm-border);
    background: #fff;
    font-size: 13px;
    font-family: inherit;
    color: var(--bm-text);
}
.beuniq-mp-range-buttons { display: flex; gap: 4px; }

/* Buttons */
.beuniq-mp-btn {
    display: inline-block;
    padding: 12px 26px;
    background: transparent;
    border: 1px solid var(--bm-dark);
    color: var(--bm-dark);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    border-radius: 0;
    transition: all .2s;
    text-decoration: none;
}
.beuniq-mp-btn:hover {
    background: var(--bm-dark);
    color: #fff;
}
.beuniq-mp-btn-primary {
    background: var(--bm-primary);
    border-color: var(--bm-primary);
    color: #fff;
}
.beuniq-mp-btn-primary:hover {
    background: var(--bm-primary-h);
    border-color: var(--bm-primary-h);
    color: #fff;
}
.beuniq-mp-btn-dark {
    background: var(--bm-dark);
    color: #fff;
}
.beuniq-mp-btn-dark:hover {
    background: var(--bm-primary);
    border-color: var(--bm-primary);
}
.beuniq-mp-btn-sm {
    display: inline-block;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid var(--bm-border);
    color: var(--bm-text);
    font-size: 12px;
    cursor: pointer;
    border-radius: 0;
    text-decoration: none;
    transition: all .2s;
}
.beuniq-mp-btn-sm:hover,
.beuniq-mp-btn-sm.is-active {
    background: var(--bm-dark);
    color: #fff;
    border-color: var(--bm-dark);
}
.beuniq-mp-btn-sm.beuniq-mp-btn-primary {
    background: var(--bm-primary);
    color: #fff;
    border-color: var(--bm-primary);
}

/* Table */
.beuniq-mp-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 14px;
}
.beuniq-mp-table th {
    background: var(--bm-light);
    padding: 14px 10px;
    font-weight: 600;
    color: var(--bm-heading);
    border-top: 1px solid var(--bm-border);
    border-bottom: 1px solid var(--bm-border);
    text-align: center;
}
.beuniq-mp-table td {
    padding: 16px 10px;
    border-bottom: 1px solid var(--bm-border);
    text-align: center;
    color: var(--bm-text);
}
.beuniq-mp-table a { color: var(--bm-primary); text-decoration: none; }
.beuniq-mp-table a:hover { color: var(--bm-primary-h); }

/* Empty */
.beuniq-mp-empty {
    padding: 80px 20px;
    text-align: center;
    color: #999;
}
.beuniq-mp-empty-icon {
    width: 60px;
    height: 60px;
    border: 1px solid #ddd;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #ccc;
    font-weight: 700;
}
.beuniq-mp-empty p { margin: 0; font-size: 14px; }

/* Help text */
.beuniq-mp-help {
    background: var(--bm-light);
    padding: 16px 20px;
    margin: 20px 0;
    font-size: 13px;
    color: var(--bm-text);
    border-left: 3px solid var(--bm-primary);
}
.beuniq-mp-help h4 {
    margin: 0 0 10px;
    color: var(--bm-heading);
    font-size: 14px;
}
.beuniq-mp-help p, .beuniq-mp-help ul { margin: 4px 0; }
.beuniq-mp-help ul { padding-left: 18px; }

/* Tags */
.beuniq-mp-tag-active {
    display: inline-block;
    padding: 3px 10px;
    background: var(--bm-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}

/* Points summary */
.beuniq-mp-points-summary {
    border: 1px solid var(--bm-border);
    padding: 20px 30px;
    margin-bottom: 30px;
}
.beuniq-mp-points-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 10px 0;
}
.beuniq-mp-points-row > div {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}
.beuniq-mp-points-row strong {
    color: var(--bm-heading);
    font-weight: 700;
}

/* Product grid */
.beuniq-mp-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.beuniq-mp-product-card {
    border: 1px solid var(--bm-border);
    background: #fff;
}
.beuniq-mp-product-thumb {
    display: block;
    overflow: hidden;
}
.beuniq-mp-product-thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}
.beuniq-mp-product-info { padding: 12px; }
.beuniq-mp-product-name {
    display: block;
    color: var(--bm-heading);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.4;
    height: 36px;
    overflow: hidden;
    margin-bottom: 6px;
}
.beuniq-mp-product-price {
    color: var(--bm-primary);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 10px;
}
.beuniq-mp-product-actions { display: flex; gap: 4px; }

/* Form */
.beuniq-mp-form { background: #fff; }
.beuniq-mp-form-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    align-items: center;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid var(--bm-border);
}
.beuniq-mp-form-row label {
    color: var(--bm-heading);
    font-weight: 600;
    font-size: 14px;
}
.beuniq-mp-form-row input[type=text],
.beuniq-mp-form-row input[type=email],
.beuniq-mp-form-row input[type=tel],
.beuniq-mp-form-row input[type=password] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--bm-border);
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    border-radius: 0;
}
.beuniq-mp-form-row input:focus {
    outline: none;
    border-color: var(--bm-navy);
}
.beuniq-mp-form-row input:disabled {
    background: var(--bm-light);
    color: #999;
}

.beuniq-mp-actions-right {
    text-align: right;
    margin-top: 20px;
}

.beuniq-mp-msg {
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    border-radius: 0;
}
.beuniq-mp-msg.success { background: #E8F5E9; color: #2E7D32; border-left: 3px solid #4CAF50; }
.beuniq-mp-msg.error   { background: #FFEBEE; color: #C62828; border-left: 3px solid #F44336; }

/* Modal */
.beuniq-mp-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.beuniq-mp-modal-box {
    background: #fff;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
}
.beuniq-mp-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--bm-heading);
}
.beuniq-mp-modal-head h3 {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    color: var(--bm-heading);
}
.beuniq-mp-modal-head .beuniq-mp-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--bm-text);
    line-height: 1;
    padding: 0;
}
.beuniq-mp-modal-foot {
    margin-top: 20px;
    text-align: right;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}
/* 하단 취소 버튼 — 저장 버튼과 동일 사이즈 */
.beuniq-mp-modal-foot .beuniq-mp-modal-close {
    background: #fff;
    border: 1px solid var(--bm-heading);
    color: var(--bm-heading);
    font-size: 14px !important;
    line-height: 1;
    padding: 12px 26px;
    font-family: inherit;
    cursor: pointer;
    border-radius: 0;
    transition: all .15s;
}
.beuniq-mp-modal-foot .beuniq-mp-modal-close:hover {
    background: var(--bm-heading);
    color: #fff;
}

/* 우편번호 인라인 필드 */
.beuniq-mp-postcode-inline {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.beuniq-mp-postcode-inline input {
    flex: 1;
}
.beuniq-mp-postcode-btn {
    flex: 0 0 auto;
    padding: 10px 16px !important;
    background: var(--bm-dark) !important;
    color: #fff !important;
    border: 1px solid var(--bm-dark) !important;
    font-size: 13px !important;
    white-space: nowrap;
}
.beuniq-mp-postcode-btn:hover {
    background: var(--bm-primary) !important;
    border-color: var(--bm-primary) !important;
}

.beuniq-mp-pagination {
    text-align: center;
    margin-top: 20px;
}

.beuniq-mp-login-required {
    max-width: 1500px;
    margin: 60px auto;
    padding: 60px 20px;
    text-align: center;
    background: var(--bm-light);
}
.beuniq-mp-login-required a {
    color: var(--bm-primary);
    font-weight: 600;
    margin-left: 8px;
}

/* Order detail */
.beuniq-mp h3.beuniq-mp-subsection-title,
.beuniq-mp .beuniq-mp-subsection-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 27px !important;
    font-weight: 700;
    color: var(--bm-heading);
    line-height: 1.2;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--bm-border);
}
.beuniq-mp-order-meta {
    border: 1px solid var(--bm-border);
    background: #fff;
    padding: 20px 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 40px;
}
.beuniq-mp-order-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    padding: 6px 0;
}
.beuniq-mp-order-meta-label {
    color: var(--bm-text);
    font-weight: 500;
}
.beuniq-mp-order-meta-row strong { color: var(--bm-heading); font-weight: 700; }
.beuniq-mp-order-status { color: var(--bm-primary) !important; }

.beuniq-mp-table-items .beuniq-mp-item-thumb { width: 90px; }
.beuniq-mp-table-items .beuniq-mp-item-thumb img {
    width: 70px; height: 70px; object-fit: cover; display: block;
}
.beuniq-mp-table-items .beuniq-mp-item-name {
    text-align: left;
    color: var(--bm-heading);
}
.beuniq-mp-table-items .beuniq-mp-item-name a {
    color: var(--bm-heading);
    font-weight: 600;
}
.beuniq-mp-item-meta {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    font-size: 12px;
    color: #888;
}
.beuniq-mp-item-meta li { margin: 2px 0; }

.beuniq-mp-payment-box {
    border: 1px solid var(--bm-border);
    background: #fff;
    padding: 20px 30px;
}
.beuniq-mp-payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px dashed var(--bm-border);
}
.beuniq-mp-payment-row:last-child { border-bottom: none; }
.beuniq-mp-payment-row.beuniq-mp-discount span:last-child { color: var(--bm-primary); }
.beuniq-mp-payment-total {
    border-top: 2px solid var(--bm-heading) !important;
    border-bottom: 2px solid var(--bm-heading) !important;
    padding: 14px 0 !important;
    margin-top: 8px;
    font-size: 16px;
}
.beuniq-mp-payment-total strong {
    color: var(--bm-primary);
    font-size: 20px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
}
.beuniq-mp-payment-method { color: #888; }

.beuniq-mp-address-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.beuniq-mp .beuniq-mp-trio-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 24px !important;
    margin-bottom: 60px;
    width: 100%;
}
.beuniq-mp .beuniq-mp-trio-col {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0;
}
.beuniq-mp .beuniq-mp-trio-col .beuniq-mp-kv-box { flex: 1; }

.beuniq-mp .beuniq-mp-kv-box {
    border: 1px solid var(--bm-border);
    background: #fff;
    padding: 20px 24px;
}
.beuniq-mp .beuniq-mp-kv-row {
    display: flex !important;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 6px;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px dashed var(--bm-border);
    line-height: 1.5;
}
.beuniq-mp .beuniq-mp-kv-row:last-child { border-bottom: none; }
.beuniq-mp .beuniq-mp-kv-label {
    color: #888;
    font-weight: 500;
    flex-shrink: 0;
}
.beuniq-mp .beuniq-mp-kv-label::after {
    content: ":";
    margin-left: 2px;
}
.beuniq-mp .beuniq-mp-kv-value {
    color: var(--bm-heading);
    word-break: break-all;
    flex: 1;
}
.beuniq-mp .beuniq-mp-kv-block {
    flex-direction: column !important;
    align-items: stretch !important;
}
.beuniq-mp .beuniq-mp-kv-block .beuniq-mp-kv-label { margin-bottom: 4px; }
.beuniq-mp .beuniq-mp-kv-total {
    border-top: 2px solid var(--bm-heading) !important;
    border-bottom: 2px solid var(--bm-heading) !important;
    padding: 14px 0 !important;
    margin-top: 6px;
}
.beuniq-mp .beuniq-mp-kv-total .beuniq-mp-kv-value {
    color: var(--bm-primary);
    font-size: 18px;
    font-weight: 700;
    font-family: 'Open Sans', sans-serif;
    text-align: right;
}
.beuniq-mp .beuniq-mp-discount .beuniq-mp-kv-value { color: var(--bm-primary); }
.beuniq-mp-info-box {
    border: 1px solid var(--bm-border);
    background: #fff;
    padding: 20px 30px;
}
.beuniq-mp-info-row {
    display: flex;
    align-items: flex-start;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px dashed var(--bm-border);
}
.beuniq-mp-info-row:last-child { border-bottom: none; }
.beuniq-mp-info-row > span:first-child {
    width: 100px;
    color: #888;
    font-weight: 500;
    flex-shrink: 0;
}
.beuniq-mp-info-row > span:last-child {
    color: var(--bm-heading);
    flex: 1;
}
.beuniq-mp-info-row-block { flex-direction: column; align-items: stretch; }
.beuniq-mp-info-row-block > span:first-child { margin-bottom: 6px; }

.beuniq-mp-notes {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--bm-border);
}
.beuniq-mp-notes li {
    padding: 14px 0;
    border-bottom: 1px solid var(--bm-border);
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 20px;
    font-size: 14px;
}
.beuniq-mp-note-date { color: #888; }
.beuniq-mp-note-content { color: var(--bm-heading); }

.beuniq-mp-actions-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    gap: 8px;
}
.beuniq-mp-actions-between > div { display: flex; gap: 8px; }

.beuniq-mp .beuniq-mp-actions-trio {
    display: flex !important;
    justify-content: center !important;
    align-items: center;
    gap: 12px;
    margin: 40px auto 0 !important;
    width: 100%;
    max-width: 720px;
    text-align: center;
}
.beuniq-mp .beuniq-mp-actions-trio .beuniq-mp-btn {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    text-align: center;
    padding: 14px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.beuniq-mp-btn.is-disabled {
    background: #f5f5f5;
    border-color: #ddd;
    color: #bbb;
    cursor: not-allowed;
    pointer-events: none;
}

/* 나의 게시글 */
.beuniq-mp-board-tag {
    display: inline-block;
    padding: 2px 8px;
    background: var(--bm-light);
    color: var(--bm-heading);
    font-size: 11px;
    font-weight: 600;
    border: 1px solid var(--bm-border);
}
.beuniq-mp-answer-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--bm-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}
.beuniq-mp-waiting-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #eee;
    color: #888;
    font-size: 11px;
    font-weight: 600;
}
.beuniq-mp-answer-row td {
    padding: 0 10px 16px !important;
    border-bottom: 1px solid var(--bm-border);
}
.beuniq-mp-answer-block {
    background: var(--bm-light);
    border-left: 3px solid var(--bm-primary);
    padding: 14px 18px;
    margin-top: 4px;
}
.beuniq-mp-answer-head {
    color: var(--bm-heading);
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 8px;
}
.beuniq-mp-answer-content {
    color: var(--bm-text);
    font-size: 13px;
    line-height: 1.6;
}
.beuniq-mp-answer-content p { margin: 4px 0; }

/* Responsive */
@media (max-width: 900px) {
    /* 좌우 패딩 10px (다른 모바일 페이지와 통일) */
    .beuniq-mp { padding: 0 10px; }
    body.beuniq-mp-active .ast-container,
    body.beuniq-mp-active #primary,
    body.beuniq-mp-active main[id="main"] {
        max-width: 100% !important;
    }
    body.beuniq-mp-active .site-content {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    .beuniq-mp-title { font-size: 24px; margin: 20px 0 24px; }

    /* 상단 요약 카드: 가로 3열 유지 (모바일 컴팩트) */
    .beuniq-mp-summary { grid-template-columns: repeat(3, 1fr); margin-bottom: 30px; }
    .beuniq-mp-summary-card { padding: 20px 8px; border-right: 1px solid var(--bm-border); border-bottom: none; }
    .beuniq-mp-summary-card:last-child { border-right: none; }
    .beuniq-mp-summary-icon svg { width: 24px; height: 24px; }
    .beuniq-mp-summary-value { font-size: 14px; word-break: keep-all; }
    .beuniq-mp-summary-label { font-size: 11px; }

    /* 본문: 사이드바 위, 메인 아래 */
    .beuniq-mp-body { grid-template-columns: 1fr; gap: 20px; }
    .beuniq-mp-sidebar {
        display: flex;
        flex-wrap: wrap;
        gap: 12px 20px;
        border: 1px solid var(--bm-border);
        padding: 14px;
    }
    .beuniq-mp-sidebar-group { margin-bottom: 0; flex: 1 1 45%; min-width: 140px; }
    .beuniq-mp-sidebar-title { font-size: 13px; margin-bottom: 6px; }
    .beuniq-mp-sidebar-list li { margin-bottom: 4px; }
    .beuniq-mp-sidebar-list a { font-size: 13px; padding: 3px 0; }

    .beuniq-mp-section-title { font-size: 16px; padding-bottom: 10px; margin-bottom: 18px; }
    .beuniq-mp-section { margin-bottom: 36px; }

    /* 주문 상태 플로우: 가로 스크롤 방지, 번호/라벨 축소 */
    .beuniq-mp-status-flow { padding: 10px 0 20px; }
    .beuniq-mp-status-num { font-size: 22px; }
    .beuniq-mp-status-label { font-size: 12px; }
    .beuniq-mp-status-arrow { padding: 0 4px; font-size: 14px; }
    .beuniq-mp-status-cell { padding: 12px 6px; font-size: 12px; }

    /* 탭 */
    .beuniq-mp-tabs { overflow-x: auto; flex-wrap: nowrap; }
    .beuniq-mp-tab { padding: 12px 16px; font-size: 13px; white-space: nowrap; }

    /* 필터 폼 */
    .beuniq-mp-filter { padding: 12px; gap: 6px; }
    .beuniq-mp-select, .beuniq-mp-date { font-size: 12px; padding: 6px 8px; }
    .beuniq-mp-range-buttons { display: flex; flex-wrap: wrap; gap: 4px; }
    .beuniq-mp-btn-sm { padding: 5px 10px; font-size: 11px; }

    /* 테이블: 읽기 쉽게 카드형 */
    .beuniq-mp-table { font-size: 12px; }
    .beuniq-mp-table th, .beuniq-mp-table td { padding: 8px 4px; }

    /* 상품 그리드 */
    .beuniq-mp-product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .beuniq-mp-product-thumb img { height: 170px; }
    .beuniq-mp-product-name { font-size: 12px; height: 32px; }
    .beuniq-mp-product-price { font-size: 13px; }

    /* 폼 */
    .beuniq-mp-form-row { grid-template-columns: 1fr; gap: 6px; padding: 10px 0; }
    .beuniq-mp-form-row label { font-size: 13px; }

    /* 주문 상세 그리드 / 노트 / 액션 */
    .beuniq-mp-order-meta, .beuniq-mp-address-grid { grid-template-columns: 1fr; gap: 16px; }
    .beuniq-mp-order-meta { padding: 14px 16px; gap: 8px; }
    .beuniq-mp-trio-grid { grid-template-columns: 1fr; gap: 16px; }
    .beuniq-mp-notes li { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
    .beuniq-mp-actions-trio { grid-template-columns: 1fr; }
    .beuniq-mp-actions-trio .beuniq-mp-btn { padding: 12px; font-size: 13px; }
    .beuniq-mp h3.beuniq-mp-subsection-title,
    .beuniq-mp .beuniq-mp-subsection-title { font-size: 18px !important; }

    /* 포인트 요약 */
    .beuniq-mp-points-summary { padding: 16px 18px; }
    .beuniq-mp-points-row { grid-template-columns: 1fr; gap: 6px; padding: 4px 0; }

    /* 주문 상품 섹션 (상세) */
    .beuniq-mp-table-items .beuniq-mp-item-thumb { width: 70px; }
    .beuniq-mp-table-items .beuniq-mp-item-thumb img { width: 56px; height: 56px; }

    /* 결제 정보 박스 */
    .beuniq-mp-payment-box { padding: 14px 16px; }
    .beuniq-mp-payment-row { font-size: 13px; padding: 8px 0; }
    .beuniq-mp-payment-total { font-size: 14px; }
    .beuniq-mp-payment-total strong { font-size: 16px; }

    /* 브레드크럼 */
    .beuniq-mp-breadcrumb { font-size: 12px; margin-bottom: 14px; }

    /* 모달 */
    .beuniq-mp-modal-box { padding: 20px; }
}

@media (max-width: 480px) {
    .beuniq-mp-title { font-size: 20px; }
    .beuniq-mp-summary-card { padding: 14px 4px; }
    .beuniq-mp-summary-value { font-size: 12px; }
    .beuniq-mp-summary-label { font-size: 10px; }
    .beuniq-mp-product-grid { grid-template-columns: 1fr; }
    .beuniq-mp-product-thumb img { height: 220px; }
    .beuniq-mp-tab { padding: 10px 12px; font-size: 12px; }
}

/* ===== 회원 탈퇴 ===== */
.beuniq-mp-leave-notice {
    background: #fff8f4;
    border: 1px solid #ffd9c2;
    border-radius: 6px;
    padding: 20px 24px;
    margin-bottom: 24px;
}
.beuniq-mp-leave-notice h3 {
    margin: 0 0 12px;
    font-size: 15px;
    color: #d14a1f;
}
.beuniq-mp-leave-notice ul {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    color: #555;
    line-height: 1.8;
}
.beuniq-mp-leave-notice ul li strong { color: #222; }

.beuniq-mp-form-row .req { color: #d14a1f; }
.beuniq-mp-form-row small {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 6px;
}
.beuniq-mp-form-row textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 13px;
    resize: vertical;
}
.beuniq-mp-form-row select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    background: #fff;
}

.beuniq-mp-form-row-agree { margin-top: 4px; }
.beuniq-mp-check-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
}

.beuniq-mp-btn-danger {
    background: #d14a1f !important;
    color: #fff !important;
    border-color: #d14a1f !important;
}
.beuniq-mp-btn-danger:hover {
    background: #b8391a !important;
    border-color: #b8391a !important;
}
