/* V1.3.8 – isolated WooCommerce My Account dashboard and rewards styles. */
.mgv137-account{--mgv-ink:#24382f;--mgv-muted:#68786f;--mgv-line:#dfe8df;--mgv-soft:#f7f9f6;--mgv-green:#195b41;--mgv-faint:#ebf3ec;color:var(--mgv-ink);max-width:1120px;margin:0 auto 28px;box-sizing:border-box;font-family:inherit;line-height:1.6;overflow-wrap:anywhere}
.mgv137-account *{box-sizing:border-box}
.mgv137-account a{color:var(--mgv-green);text-decoration:none}
.mgv137-account a:hover{text-decoration:underline}
.mgv137-account button{font:inherit;cursor:pointer}
.mgv137-account h2,.mgv137-account h3,.mgv137-account p{margin-top:0}
.mgv137-account h2{font-size:clamp(24px,2.75vw,31px)!important;line-height:1.3!important;font-weight:700!important;color:var(--mgv-ink)!important;margin:6px 0 8px!important}
.mgv137-account h3{font-size:17px!important;line-height:1.45!important;font-weight:700!important;color:var(--mgv-ink)!important;margin:0!important}
.mgv137-account .mgv137-eyebrow{display:block;letter-spacing:.16em;font-size:10px;font-weight:750;color:#829187}
.mgv137-dashboard-hero,.mgv137-rewards-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:25px 28px;border:1px solid var(--mgv-line);background:linear-gradient(125deg,#f6faf5,#fff 80%);border-radius:17px;margin:0 0 16px}
.mgv137-dashboard-hero p,.mgv137-rewards-header p{color:var(--mgv-muted);font-size:13px;margin:0}
.mgv137-hero-link{flex-shrink:0;background:#235d43;color:#fff!important;padding:11px 16px;border-radius:10px;font-size:13px;font-weight:650}
.mgv137-hero-link:hover{text-decoration:none!important;background:#16442f}
.mgv137-dash-metrics,.mgv137-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-bottom:16px}
.mgv137-dash-metrics>div,.mgv137-stat{min-width:0;background:#fff;border:1px solid var(--mgv-line);border-radius:15px;padding:22px 23px;display:flex;flex-direction:column;gap:4px}
.mgv137-dash-metrics span,.mgv137-stat span{color:var(--mgv-muted);font-size:13px}
.mgv137-dash-metrics strong,.mgv137-stat strong{font-size:clamp(29px,3vw,39px);line-height:1.15;font-weight:700;color:var(--mgv-green);font-variant-numeric:tabular-nums}
.mgv137-dash-metrics em,.mgv137-stat small{font-size:13px;font-style:normal;margin-left:4px;font-weight:600}
.mgv137-dash-metrics small,.mgv137-stat p{margin:0;color:#79867c;font-size:12px}
.mgv137-dashboard-section,.mgv137-section{border:1px solid var(--mgv-line);border-radius:16px;background:#fff;padding:24px;margin-bottom:16px;min-width:0}
.mgv137-section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;margin-bottom:17px}
.mgv137-section-head h3{margin:0 0 3px!important}
.mgv137-section-head p,.mgv137-section-head>span{margin:0;color:var(--mgv-muted);font-size:12px}
.mgv137-quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.mgv137-quick{display:flex;align-items:center;gap:12px;min-width:0;padding:16px;border-radius:13px;border:1px solid #e5ece5;background:#fcfdfb;transition:border-color .15s,transform .15s}
.mgv137-quick:hover{text-decoration:none!important;border-color:#92b69c;transform:translateY(-1px)}
.mgv137-quick-icon{width:38px;height:38px;flex:none;background:var(--mgv-faint);border-radius:12px;color:var(--mgv-green);display:flex;align-items:center;justify-content:center;font-size:22px}
.mgv137-quick>span:nth-child(2){min-width:0;flex:1}
.mgv137-quick strong,.mgv137-quick small{display:block}
.mgv137-quick strong{color:var(--mgv-ink);font-size:14px;font-weight:700}
.mgv137-quick small{color:var(--mgv-muted);font-size:11px;line-height:1.6;margin-top:4px}
.mgv137-next{color:#789085;font-size:20px}
.mgv137-recent-list{display:grid;gap:0}
.mgv137-recent-row{display:grid;grid-template-columns:1fr .85fr .8fr auto 8px;align-items:center;gap:12px;border-top:1px solid #edf1ed;padding:14px 2px;font-size:12px;color:var(--mgv-muted)!important}
.mgv137-recent-row:first-child{border-top:0}
.mgv137-recent-row strong,.mgv137-order-num{font-weight:700;color:var(--mgv-ink)}
.mgv137-order-status{background:var(--mgv-soft);color:#536a5b;border:1px solid #dfe8df;border-radius:99px;padding:3px 7px;width:max-content;max-width:100%}
.mgv137-empty{padding:24px 14px;text-align:center;border:1px dashed #dbe6dc;border-radius:12px;background:#fcfdfb;color:var(--mgv-muted);font-size:13px}
.mgv137-rewards-header{padding:25px 28px;display:block}.mgv137-rewards-header p{margin-top:6px}
.mgv137-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
.mgv137-stat{padding:19px 16px;gap:7px}
.mgv137-stat strong{font-size:clamp(25px,2.8vw,35px)}
.mgv137-stat.is-green{background:#eff7f0;border-color:#d8e8da}
.mgv137-invite{display:flex;align-items:center;justify-content:space-between;gap:18px;border:1px solid var(--mgv-line);background:#fff;border-radius:15px;padding:18px 22px;margin-bottom:16px}
.mgv137-invite span{font-size:12px;color:var(--mgv-muted)}
.mgv137-invite strong{display:block;font-size:25px;line-height:1.25;letter-spacing:.1em;font-variant-numeric:tabular-nums;color:var(--mgv-green);margin:3px 0}
.mgv137-invite p{margin:0;color:var(--mgv-muted);font-size:12px}
.mgv137-invite .mgv6-refcopy{flex:none;min-height:42px;border:1px solid #b7d0c0;border-radius:10px;background:#f7faf7;color:#1b5940;padding:9px 15px;font-weight:700;font-size:13px}
.mgv137-rules{background:#fff;border:1px solid var(--mgv-line);border-radius:16px;padding:23px;margin-bottom:16px}
.mgv137-rules-head{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:14px}
.mgv137-rules-head p{margin:0;color:var(--mgv-muted);font-size:12px}
.mgv137-rules-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.mgv137-rules-grid article{min-width:0;border:1px solid #e5ece4;border-radius:12px;background:#f9fbf8;padding:17px}
.mgv137-step{font-size:11px;color:#547561;font-weight:650;display:block;margin-bottom:9px}
.mgv137-rules-grid strong{font-size:15px;line-height:1.5;color:#264d39;display:block;margin-bottom:6px}
.mgv137-rules-grid p,.mgv137-rule-foot{margin:0;color:var(--mgv-muted);font-size:12px;line-height:1.75}
.mgv137-rule-foot{padding:11px 2px 0}
.mgv137-subnav{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.mgv137-subnav a{display:block;border:1px solid #dce7dd;background:#fff;border-radius:99px;padding:7px 13px;color:#42624d;font-size:12px;font-weight:650}
.mgv137-subnav a:hover{background:#f1f8f2;text-decoration:none}
.mgv137-coupon-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.mgv137-coupon{min-width:0;border:1px solid #e2eae2;background:#fbfcfa;border-radius:13px;padding:16px 18px;display:flex;flex-direction:column;gap:5px}
.mgv137-coupon-top{display:flex;align-items:center;justify-content:space-between;gap:9px;flex-wrap:wrap}
.mgv137-chip{border-radius:99px;padding:3px 9px;background:#ebf3ee;color:#2c6948;font-weight:700;font-size:11px}
.mgv137-chip.used,.mgv137-chip.expired,.mgv137-chip.inactive{background:#f0f1ef;color:#79817c}
.mgv137-coupon-kind{color:#6c796d;font-size:11px}
.mgv137-coupon>strong{font-size:25px;line-height:1.2;color:var(--mgv-green);padding-top:4px}
.mgv137-coupon code{align-self:flex-start;max-width:100%;white-space:normal;overflow-wrap:anywhere;background:#fff;color:var(--mgv-ink);font-size:12px;padding:4px 7px;border:1px dashed #cadbcd;border-radius:6px}
.mgv137-coupon p,.mgv137-coupon small{font-size:11px;color:var(--mgv-muted);line-height:1.6;margin:0}
.mgv137-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid #edf1ec;border-radius:12px}
.mgv137-table{width:100%;border-collapse:collapse;min-width:540px;table-layout:auto;margin:0!important}
.mgv137-table th,.mgv137-table td{text-align:left;vertical-align:middle;padding:13px 12px;font-size:12px;line-height:1.55;border-bottom:1px solid #edf0ec}
.mgv137-table th{background:#f7faf6;color:#607468;font-weight:700;white-space:nowrap}
.mgv137-table tbody tr:last-child td{border-bottom:none}
.mgv137-table td strong,.mgv137-table td small{display:block}
.mgv137-table td strong{color:var(--mgv-ink);font-weight:700}
.mgv137-table td small{color:var(--mgv-muted);font-size:11px;margin-top:3px}
.mgv137-table td a{font-weight:650;text-decoration:underline;text-underline-offset:2px}
.mgv137-positive{color:#216b47!important;font-weight:800}
.mgv137-negative{color:#a3484d!important;font-weight:800}
.mgv137-pages{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:8px;margin-top:13px;font-size:12px;color:var(--mgv-muted)}
.mgv137-pages a{border:1px solid #dce6df;border-radius:8px;padding:5px 10px;background:#fff}
.mgv137-footer-note{color:var(--mgv-muted);font-size:12px;line-height:1.8;margin:12px 2px 0}
@media(max-width:1000px){.mgv137-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.mgv137-rules-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:700px){.mgv137-account{margin:0 0 22px}.mgv137-dashboard-hero,.mgv137-rewards-header{padding:20px;align-items:flex-start;flex-direction:column}.mgv137-hero-link{width:100%;text-align:center}.mgv137-dash-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.mgv137-dash-metrics>div,.mgv137-stat{padding:17px 13px}.mgv137-dashboard-section,.mgv137-section,.mgv137-rules{padding:18px 15px}.mgv137-quick-grid,.mgv137-coupon-grid{grid-template-columns:minmax(0,1fr)}.mgv137-recent-row{grid-template-columns:1fr 1fr;gap:6px}.mgv137-recent-row>span:last-child{display:none}.mgv137-recent-row strong{text-align:right}.mgv137-recent-row .mgv137-order-status{justify-self:start}.mgv137-invite{align-items:flex-start;flex-direction:column;padding:17px}.mgv137-invite .mgv6-refcopy{width:100%}.mgv137-rules-head{display:block}.mgv137-rules-head p{margin:6px 0 0}.mgv137-subnav{gap:6px}.mgv137-subnav a{padding:6px 10px}}
@media(max-width:520px){.mgv137-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.mgv137-stat strong{font-size:28px}.mgv137-section-head{display:block}.mgv137-section-head>span{display:block;margin-top:6px}.mgv137-table-wrap{overflow:visible;border:0}.mgv137-table{min-width:0;display:block;border:0}.mgv137-table thead{display:none}.mgv137-table tbody{display:grid;gap:10px}.mgv137-table tr{display:block;border:1px solid #e3ebe2;background:#fbfcfa;border-radius:12px;padding:10px 13px}.mgv137-table td{display:flex;border:0!important;justify-content:space-between;align-items:flex-start;gap:10px;min-width:0;padding:6px 0;text-align:right;overflow-wrap:anywhere}.mgv137-table td::before{content:attr(data-label);color:#7b897f;font-size:11px;font-weight:600;flex:none;text-align:left;padding-top:1px}.mgv137-table td>*{max-width:68%}.mgv137-table td strong{display:inline;text-align:right}.mgv137-table td small{display:block}.mgv137-table td[data-label="來源"]{display:block;text-align:left}.mgv137-table td[data-label="來源"]::before{display:block;margin:0 0 3px}.mgv137-table td[data-label="來源"]>*{max-width:100%}.mgv137-table td a{min-width:0}.mgv137-quick{padding:14px}.mgv137-rules-grid article{padding:14px}}

/* V1.3.8 navigation polish, deliberately scoped to WooCommerce account only. */
body.woocommerce-account .woocommerce-MyAccount-navigation{box-sizing:border-box}
body.woocommerce-account .woocommerce-MyAccount-navigation ul{list-style:none!important;padding:10px!important;margin:0!important;border:1px solid #e7e3dc;border-radius:18px;background:#fff;box-shadow:0 10px 32px rgba(51,64,51,.035)}
body.woocommerce-account .woocommerce-MyAccount-navigation ul li{display:block!important;margin:0!important;padding:0!important;border:0!important;position:relative}
body.woocommerce-account .woocommerce-MyAccount-navigation ul li a{display:flex!important;min-height:48px;align-items:center;padding:11px 16px!important;margin:2px 0!important;border-radius:11px!important;color:#3c4c43!important;background:transparent!important;font-size:14px!important;font-weight:550!important;letter-spacing:.02em;text-decoration:none!important;box-sizing:border-box;transition:background-color .18s,color .18s}
body.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover{background:#f4f8f4!important;color:#1d593c!important}
body.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a{background:#eaf3ec!important;color:#1b553c!important;font-weight:750!important}
body.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a:before{content:'';display:block;width:5px;height:18px;background:#377e55;border-radius:6px;flex:none;margin-right:10px}
body.woocommerce-account .woocommerce-MyAccount-content{min-width:0;box-sizing:border-box}
.mgv137-account{--mgv-ink:#293d32;--mgv-muted:#66786d;--mgv-line:#e5ebe3;--mgv-soft:#f6f9f6;--mgv-green:#1a5c42;--mgv-faint:#edf5ee}
.mgv137-dashboard-hero,.mgv137-rewards-header{background:linear-gradient(115deg,#eff6f0 0,#f8faf6 48%,#fff 100%);border:1px solid #dce9de;box-shadow:0 12px 28px rgba(32,74,47,.035)}
.mgv137-dashboard-section,.mgv137-section,.mgv137-rules{box-shadow:0 8px 23px rgba(26,63,41,.025)}
.mgv137-stat{box-shadow:0 6px 22px rgba(33,71,42,.03)}
.mgv137-invite{background:linear-gradient(115deg,#f6faf6,#fff);border-color:#dbe8df}
.mgv137-rules-grid article{background:#fcfdfb;border-color:#e4ece3;position:relative}
.mgv137-rules-grid article:nth-child(2){background:#f2f8f3;border-color:#d8e9db}
.mgv137-rules-grid article:nth-child(3){background:#f8faf5}
.mgv137-step{font-size:12px;letter-spacing:.02em}
.mgv137-rules-grid p{font-size:13px;line-height:1.8;color:#627366}
.mgv137-rewards .mgv137-rule-foot{font-size:12px;line-height:1.7;color:#839184;border-top:1px solid #edf1ea;margin-top:16px;padding:14px 2px 0}
.mgv137-dashboard .mgv137-dashboard-section .mgv137-section-head a{color:#225f43;text-decoration:none;font-size:13px;font-weight:700}
.mgv137-quick:focus-visible,.mgv137-hero-link:focus-visible,.mgv137-subnav a:focus-visible,body.woocommerce-account .woocommerce-MyAccount-navigation a:focus-visible{outline:2px solid #29704c;outline-offset:3px}
@media(max-width:767px){
  body.woocommerce-account .woocommerce-MyAccount-navigation,body.woocommerce-account .woocommerce-MyAccount-content{float:none!important;width:100%!important;max-width:100%!important}
  body.woocommerce-account .woocommerce-MyAccount-navigation{margin:0 0 18px!important}
  body.woocommerce-account .woocommerce-MyAccount-navigation ul{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:9px!important}
  body.woocommerce-account .woocommerce-MyAccount-navigation ul li a{min-height:43px;padding:9px 10px!important;margin:0!important;font-size:13px!important}
  body.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a:before{width:3px;height:17px;margin-right:6px}
  .mgv137-dashboard-hero,.mgv137-rewards-header{padding:19px!important}
  .mgv137-dash-metrics>div,.mgv137-stat{box-shadow:none}
}
@media(min-width:768px) and (max-width:950px){
  body.woocommerce-account .woocommerce-MyAccount-navigation ul li a{padding:10px 11px!important;font-size:13px!important}
}

/* V1.3.9: legacy WooCommerce dashboard action is no longer rendered twice. */
