.mypage-wrap{max-width:720px;margin:0 auto;padding:24px}
.mypage-wrap input{width:100%;padding:10px;border:1px solid #ddd;border-radius:8px}
.mypage-wrap .row{margin-bottom:12px}

/* ----------------------------
 * 履歴（MUプラグイン）
 * ---------------------------- */
.gw-history{margin-top:12px}
.gw-history__section{margin-top:14px;padding:14px;border:1px solid #e2e8f0;border-radius:14px;background:#fff}
.gw-history__header{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.gw-history__title{margin:0;font-size:18px}
.gw-history__hint,.gw-history__muted,.gw-history__empty{color:#64748b;font-size:.92rem}
.gw-history__table-wrap{overflow:auto}
.gw-history__table{width:100%;border-collapse:collapse;margin-top:10px;min-width:620px}
.gw-history__table th,.gw-history__table td{padding:10px 8px;border-top:1px solid #e2e8f0;vertical-align:top}
.gw-history__table th{text-align:left;font-size:.88rem;color:#475569;font-weight:700}
.gw-history__money{text-align:right;white-space:nowrap}
.gw-history__actions{white-space:nowrap}

.gw-badge{display:inline-block;padding:3px 8px;border-radius:999px;font-size:.78rem;font-weight:800;border:1px solid #e2e8f0;background:#f8fafc;color:#0f172a}
.gw-badge--paid{background:#dcfce7;border-color:#86efac;color:#166534}
.gw-badge--pending{background:#fffbeb;border-color:#fed7aa;color:#9a3412}
.gw-badge--processing{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}
.gw-badge--failed{background:#fee2e2;border-color:#fecaca;color:#991b1b}
.gw-badge--expired{background:#f1f5f9;border-color:#cbd5e1;color:#334155}
.gw-badge--refunded{background:#f1f5f9;border-color:#cbd5e1;color:#334155}

.gw-btn{display:inline-block;padding:8px 10px;border-radius:10px;border:1px solid #0f172a;background:#0f172a;color:#fff;text-decoration:none;font-size:.9rem;cursor:pointer;line-height:1.1}
.gw-btn--ghost{background:#fff;color:#0f172a}
.gw-btn--small{padding:7px 9px;font-size:.85rem}

/* ----------------------------
 * モーダル（問い合わせ詳細）
 * ---------------------------- */
.gw-modal{position:fixed;inset:0;z-index:9999;display:none}
.gw-modal[aria-hidden="false"]{display:block}
.gw-modal__overlay{position:absolute;inset:0;background:rgba(15,23,42,.55)}
.gw-modal__dialog{position:relative;max-width:720px;margin:8vh auto;background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:16px 16px 18px;box-shadow:0 25px 60px rgba(0,0,0,.25)}
.gw-modal__close{position:absolute;top:8px;right:10px;border:0;background:transparent;font-size:26px;line-height:1;cursor:pointer;padding:6px;color:#0f172a}
.gw-modal__title{margin:0 0 12px;font-size:18px}
.gw-modal__meta{display:grid;grid-template-columns:90px 1fr;gap:6px 12px;margin:0 0 10px;font-size:.95rem}
.gw-modal__meta dt{color:#475569;font-weight:700}
.gw-modal__meta dd{margin:0}
.gw-modal__body{white-space:pre-wrap;line-height:1.7;color:#0f172a}

@media (max-width: 740px){
  .gw-history__table{min-width:560px}
  .gw-modal__dialog{margin:4vh 12px}
}
