/* 魔術代儲：大改造 第 2 批（精簡文字、面額一排一個、按鈕按下反饋）。只用在 magic888topup.com。 */

/* ---------- 刪掉多餘文字 ---------- */
html[data-store-motion="magic"] .availability-slot{display:none!important}
html[data-store-motion="magic"] .ux-service p:not(:only-child){display:none!important}
html[data-store-motion="magic"] .ux-service:has(> p:not(:only-child)){min-height:0!important;height:auto!important;padding:10px 14px!important;display:flex!important;align-items:center!important;gap:8px!important}
html[data-store-motion="magic"] .ux-service:has(> p:not(:only-child)) > a{min-height:0!important;height:auto!important;padding:2px 0!important;font-size:14px!important}
html[data-store-motion="magic"] .mg-hide{display:none!important}
html[data-store-motion="magic"] .role-status:not(:has(.mg-role-err)){display:none!important}
html[data-store-motion="magic"] .product .ux-note-summary,
html[data-store-motion="magic"] .product .ux-details,
html[data-store-motion="magic"] .product .product-picture{display:none!important}
html[data-store-motion="magic"] .ui-products-grid.mg-same-note + *{margin-top:0}
@media (max-width:760px){
  html[data-store-motion="magic"] #main .hero .hero-copy p{display:none!important}
  html[data-store-motion="magic"] #main .category-caption{display:none!important}
}

/* ---------- 面額：一排一個 ---------- */
@media (max-width:760px){
  html[data-store-motion="magic"] .ui-products-grid{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
  html[data-store-motion="magic"] .ui-products-grid .product{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"name buy" "sub buy" "note buy"!important;align-items:center!important;column-gap:12px!important;row-gap:2px!important;min-height:0!important;height:auto!important;padding:14px 12px 14px 16px!important;border-radius:16px!important}
  html[data-store-motion="magic"] .ui-products-grid .product > h3{grid-area:name!important;margin:0!important;font-size:16px!important;line-height:1.3!important}
  html[data-store-motion="magic"] .ui-products-grid .product > .ui-unit-price{grid-area:sub!important;margin:0!important;font-size:12px!important}
  html[data-store-motion="magic"] .ui-products-grid .product > .mg-combo,
  html[data-store-motion="magic"] .ui-products-grid .product > .stock-note{grid-area:note!important;margin:2px 0 0!important;font-size:11px!important}
  html[data-store-motion="magic"] .ui-products-grid .product > .between{grid-area:buy!important;display:flex!important;align-items:center!important;gap:10px!important;margin:0!important}
  html[data-store-motion="magic"] .ui-products-grid .product .price{font-size:17px!important;font-weight:900!important;white-space:nowrap!important}
  html[data-store-motion="magic"] .ui-products-grid .product .add{width:40px!important;height:40px!important;min-height:0!important;border-radius:12px!important}
  html[data-store-motion="magic"] .ui-products-grid .product .qty{display:flex!important;align-items:center!important}
  html[data-store-motion="magic"] .ui-products-grid .product .qty button{width:34px!important;height:36px!important;min-height:0!important}
  html[data-store-motion="magic"] .ui-products-grid .product .ui-selection-check{display:none!important}
  html[data-store-motion="magic"] .ui-products-grid .product::after{display:none!important}
}
html[data-store-motion="magic"] .mg-combo{display:inline-flex;align-self:start;justify-self:start;padding:2px 8px;border-radius:999px;background:var(--mg-pur2,#efe9fb);color:#4b3696;font-weight:700}
html[data-theme="dark"][data-store-motion="magic"] .mg-combo{background:#2f2750;color:#d8cbff}

/* ---------- 按下反饋 ---------- */
html[data-store-motion="magic"] .mobile-checkout-bar .btn,
html[data-store-motion="magic"] .review-checkout-bar .btn,
html[data-store-motion="magic"] [data-action="previous"],
html[data-store-motion="magic"] [data-action="next"],
html[data-store-motion="magic"] .product .add,
html[data-store-motion="magic"] .product .qty button{position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent;transition:transform .14s cubic-bezier(.3,1.6,.5,1),filter .14s,box-shadow .14s!important}
html[data-store-motion="magic"] .mg-press{transform:scale(.94)!important;filter:brightness(.92)}
html[data-store-motion="magic"] .mg-ripple{position:absolute;border-radius:50%;pointer-events:none;background:currentColor;opacity:.28;transform:scale(0);animation:mg-ripple .5s ease-out forwards}
html[data-store-motion="magic"] .mobile-checkout-bar button:disabled,
html[data-store-motion="magic"] .review-checkout-bar button:disabled{pointer-events:none}
html[data-store-motion="magic"] .mg-nudge{animation:mg-shake .4s!important}
html[data-store-motion="magic"] .mg-tip{position:fixed;z-index:9999;transform:translate(-50%,-100%);padding:8px 12px;border-radius:12px;background:#221b35;color:#fff;font-size:13px;font-weight:700;white-space:nowrap;box-shadow:0 8px 20px rgba(20,14,40,.25);pointer-events:none;animation:mg-tip 1.8s ease forwards}
html[data-store-motion="magic"] .mg-tip::after{content:"";position:absolute;left:50%;bottom:-5px;width:10px;height:10px;margin-left:-5px;background:#221b35;transform:rotate(45deg);border-radius:2px}
@keyframes mg-ripple{to{transform:scale(1);opacity:0}}
@keyframes mg-tip{0%{opacity:0;margin-top:6px}12%{opacity:1;margin-top:0}80%{opacity:1}100%{opacity:0}}
@keyframes mg-shake{20%,60%{transform:translateX(-5px)}40%,80%{transform:translateX(5px)}}
@media (prefers-reduced-motion:reduce){html[data-store-motion="magic"] .mg-ripple,html[data-store-motion="magic"] .mg-nudge{animation:none!important}html[data-store-motion="magic"] .mg-press{transform:none!important}}
