.ctech-mg-wrap{text-align:center;max-width:760px;margin:24px auto;position:relative;overflow:hidden;padding:12px}.ctech-mg-thankyou{margin:32px 0;padding:26px;border:1px solid #e5e5e5;border-radius:20px;text-align:center;background:linear-gradient(180deg,#fff,#fffaf1)}.ctech-mg-thankyou>h2{margin:0 0 8px}.ctech-mg-compact{margin:8px auto 0}.ctech-mg-turns{font-size:17px}.ctech-mg-box{border:0;background:transparent;cursor:pointer;display:inline-flex;flex-direction:column;align-items:center;gap:18px;padding:20px;position:relative}.ctech-mg-box> b{background:#111;color:#fff;padding:11px 24px;border-radius:999px;letter-spacing:.04em}.ctech-mg-box:disabled{opacity:.55;cursor:not-allowed}.ctech-gift{width:150px;height:150px;display:block;position:relative;filter:drop-shadow(0 14px 12px rgba(0,0,0,.18))}.ctech-gift-body,.ctech-gift-lid{position:absolute;left:20px;width:110px;background:#c71f37;border-radius:8px}.ctech-gift-body{height:92px;bottom:5px}.ctech-gift-lid{height:32px;top:24px;left:12px;width:126px;z-index:4}.ctech-gift-ribbon{position:absolute;z-index:5;left:66px;top:24px;width:18px;height:121px;background:#f3c74f}.ctech-gift-bow{position:absolute;z-index:6;top:3px;width:42px;height:28px;border:10px solid #f3c74f}.bow-left{left:31px;border-radius:60% 45% 55% 45%;transform:rotate(20deg)}.bow-right{right:31px;border-radius:45% 60% 45% 55%;transform:rotate(-20deg)}.ctech-gift-glow{position:absolute;z-index:2;left:50%;top:52%;font-style:normal;font-size:0;transform:translate(-50%,-50%);opacity:0}.ctech-mg-box.opening .ctech-gift{animation:ctechShake .16s linear infinite}.ctech-mg-box.opened .ctech-gift-lid,.ctech-mg-box.opened .ctech-gift-ribbon{animation:ctechLid .65s ease forwards}.ctech-mg-box.opened .ctech-gift-glow{animation:ctechGlow 1.1s ease-out forwards}.ctech-mg-result{min-height:100px;margin:8px 0 20px;font-size:18px}.ctech-opening-text{display:inline-block;padding:14px}.ctech-mg-result .win{margin:0 auto;padding:20px;border:1px solid #e3d4ae;border-radius:18px;background:#fff;max-width:420px;box-shadow:0 12px 35px rgba(0,0,0,.08);display:flex;flex-direction:column;gap:7px;align-items:center}.win-icon{font-size:34px}.ctech-mg-result code{font-size:22px;font-weight:800;user-select:all;padding:7px 12px;border-radius:8px}.ctech-copy{border:0;border-radius:999px;background:#111;color:#fff;padding:9px 17px;cursor:pointer;margin-top:4px}.ctech-confetti{pointer-events:none;position:absolute;inset:0;opacity:0;background-image:radial-gradient(circle at 10% 20%,#f0c 0 3px,transparent 4px),radial-gradient(circle at 25% 65%,#fc0 0 3px,transparent 4px),radial-gradient(circle at 45% 15%,#0bc 0 3px,transparent 4px),radial-gradient(circle at 70% 45%,#f66 0 3px,transparent 4px),radial-gradient(circle at 90% 25%,#7c5 0 3px,transparent 4px),radial-gradient(circle at 82% 75%,#96f 0 3px,transparent 4px);background-size:120px 120px}.ctech-confetti.show{animation:ctechConfetti 1.5s ease-out}.ctech-mg-wrap table{text-align:left}@keyframes ctechShake{0%{transform:rotate(-6deg) scale(1)}50%{transform:rotate(6deg) scale(1.06)}100%{transform:rotate(-6deg) scale(1)}}@keyframes ctechLid{0%{transform:translate(0,0) rotate(0)}55%{transform:translate(20px,-65px) rotate(18deg)}100%{transform:translate(42px,-85px) rotate(28deg);opacity:.15}}@keyframes ctechGlow{0%{font-size:0;opacity:0}45%{font-size:130px;opacity:1;text-shadow:0 0 30px #ffd45c}100%{font-size:190px;opacity:0}}@keyframes ctechConfetti{0%{opacity:0;transform:translateY(-40px) scale(.8)}25%{opacity:1}100%{opacity:0;transform:translateY(90px) scale(1.15)}}@media(max-width:600px){.ctech-mg-thankyou{padding:18px 10px}.ctech-gift{transform:scale(.9)}.ctech-mg-result code{font-size:18px}}

/* Voucher history status */
.ctech-mg-history .ctech-voucher-row.ctech-voucher-used,
.ctech-mg-history .ctech-voucher-row.ctech-voucher-expired,
.ctech-mg-history .ctech-voucher-row.ctech-voucher-invalid{opacity:.58}
.ctech-voucher-status{display:inline-block;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:700;line-height:1.2;white-space:nowrap;background:#f1f1f1}
.ctech-status-active{background:#e8f7ed;color:#176b35}
.ctech-status-used{background:#eef1f4;color:#4b5563}
.ctech-status-expired,.ctech-status-invalid{background:#fff0f0;color:#a12622}
.ctech-copy-small{padding:6px 10px;font-size:11px;margin:5px 0 5px 8px;vertical-align:middle}
@media(max-width:600px){.ctech-copy-small{margin-left:0;display:block}.ctech-voucher-status{margin-top:2px}}
\n\n/* Mobile: keep voucher history as a horizontal table */\n.ctech-mg-history-scroll{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}\n.ctech-mg-history{min-width:720px;width:100%;margin-bottom:8px}\n.ctech-mg-history th,.ctech-mg-history td{white-space:nowrap}\n@media(max-width:600px){\n  .ctech-mg-history.shop_table_responsive thead{display:table-header-group!important}\n  .ctech-mg-history.shop_table_responsive tbody{display:table-row-group!important}\n  .ctech-mg-history.shop_table_responsive tr{display:table-row!important}\n  .ctech-mg-history.shop_table_responsive th,\n  .ctech-mg-history.shop_table_responsive td{display:table-cell!important;text-align:left!important;vertical-align:middle!important}\n  .ctech-mg-history.shop_table_responsive td:before{display:none!important;content:none!important}\n  .ctech-mg-history .ctech-copy-small{display:inline-block;margin:0 0 0 8px}\n}\n