/* Native WHMCS controls: keep buttons, menus, alerts and modal dialogs on the same glass system. */
body.cg-body #order-standard_cart .btn-primary,body.cg-body #order-standard_cart .btn-success{border:0;border-radius:11px;background:linear-gradient(120deg,var(--cg-blue),#6986ff);box-shadow:0 8px 18px rgba(66,105,255,.16);color:#fff;font-weight:800;transition:.2s}
body.cg-body #order-standard_cart .btn-success{background:linear-gradient(120deg,#26a95a,#39bf70);box-shadow:0 8px 18px rgba(39,170,91,.16)}
body.cg-body #order-standard_cart .btn-primary:hover,body.cg-body #order-standard_cart .btn-success:hover{transform:translateY(-1px);filter:saturate(1.06);color:#fff}
body.cg-body #order-standard_cart .btn-default{border:1px solid rgba(120,143,190,.2);border-radius:10px;background:rgba(255,255,255,.62);color:#596986;font-weight:750;transition:.2s}
body.cg-body #order-standard_cart .btn-default:hover{border-color:#9cb4ff;background:rgba(238,243,255,.9);color:var(--cg-blue)}
body.cg-body #order-standard_cart .dropdown-menu,body.cg-body #order-standard_cart .popover{border:1px solid rgba(255,255,255,.86);border-radius:13px;background:rgba(255,255,255,.86);box-shadow:0 18px 48px rgba(48,68,120,.18);backdrop-filter:blur(18px);overflow:hidden}
body.cg-body #order-standard_cart .dropdown-menu>li>a,body.cg-body #order-standard_cart .dropdown-menu .dropdown-item{padding:9px 13px;color:#596986}
body.cg-body #order-standard_cart .dropdown-menu>li>a:hover,body.cg-body #order-standard_cart .dropdown-menu .dropdown-item:hover{background:#edf2ff;color:var(--cg-blue)}
body.cg-body .modal-backdrop{background:rgba(20,29,49,.58);backdrop-filter:blur(5px)}
body.cg-body .modal-dialog{margin:8vh auto;max-width:560px}
body.cg-body .modal-content{border:1px solid rgba(255,255,255,.9);border-radius:22px;background:rgba(247,250,255,.84);box-shadow:0 28px 90px rgba(25,39,76,.25);backdrop-filter:blur(24px);overflow:hidden}
body.cg-body .modal-header{padding:22px 24px 10px;border:0;background:transparent}
body.cg-body .modal-title{margin:0;color:var(--cg-ink);font-size:21px;font-weight:800;letter-spacing:-.04em}
body.cg-body .modal-header .close{margin:-4px -5px 0 0;padding:5px 9px;border:0;border-radius:9px;background:transparent;color:var(--cg-muted);font-size:25px;line-height:1;opacity:1;transition:.2s}
body.cg-body .modal-header .close:hover{background:rgba(120,143,190,.12);color:var(--cg-ink)}
body.cg-body .modal-body{padding:16px 24px 22px;color:#596986;font-size:14px;line-height:1.7}
body.cg-body .modal-footer{display:flex;justify-content:center;gap:9px;padding:0 24px 24px;border:0;background:transparent}
body.cg-body .modal-footer .btn{min-width:76px;padding:10px 16px}
body.cg-body #modalEmptyCart .modal-dialog{max-width:500px}
body.cg-body #modalEmptyCart .modal-body{text-align:center;padding-top:12px}
body.cg-body #modalEmptyCart .modal-body .fa-trash{display:block;margin:0 auto 14px;color:var(--cg-ink);font-size:58px;opacity:.95}
body.cg-body #modalEmptyCart .modal-title{font-size:25px;text-align:center}
html.cg-dark body.cg-body .modal-content{border-color:rgba(177,196,235,.2);background:rgba(27,39,64,.9);box-shadow:0 28px 90px rgba(0,0,0,.42)}
html.cg-dark body.cg-body .modal-body{color:#b5c2d9}html.cg-dark body.cg-body .modal-header .close{color:#a7b5ce}html.cg-dark body.cg-body .modal-header .close:hover{background:rgba(177,196,235,.12);color:#edf3ff}
html.cg-dark body.cg-body #order-standard_cart .btn-default{background:rgba(42,57,88,.72);border-color:rgba(177,196,235,.2);color:#d6e2fa}html.cg-dark body.cg-body #order-standard_cart .dropdown-menu,html.cg-dark body.cg-body #order-standard_cart .popover{background:rgba(27,39,64,.94);border-color:rgba(177,196,235,.2)}html.cg-dark body.cg-body #order-standard_cart .dropdown-menu>li>a,html.cg-dark body.cg-body #order-standard_cart .dropdown-menu .dropdown-item{color:#c8d6ee}html.cg-dark body.cg-body #order-standard_cart .dropdown-menu>li>a:hover,html.cg-dark body.cg-body #order-standard_cart .dropdown-menu .dropdown-item:hover{background:#304d84;color:#fff}
@media(max-width:600px){body.cg-body .modal-dialog{margin:12vh 12px;max-width:none}body.cg-body .modal-content{border-radius:18px}body.cg-body .modal-header{padding:18px 18px 8px}body.cg-body .modal-body{padding:12px 18px 18px}body.cg-body .modal-footer{padding:0 18px 18px}}
/* Match the portal's breathing room: keep cart, configuration and review pages off the viewport edges. */
body.cg-body.cg-order-page .cg-main{width:min(calc(100% - 64px),1500px);margin-left:auto;margin-right:auto}
body.cg-body.cg-order-page #order-standard_cart{padding-right:0;padding-left:0}
body.cg-body.cg-order-page #order-standard_cart>.row{margin-right:0;margin-left:0}
body.cg-body.cg-order-page #order-standard_cart .cart-body,body.cg-body.cg-order-page #order-standard_cart .cart-sidebar{box-sizing:border-box}
@media(max-width:760px){body.cg-body.cg-order-page .cg-main{width:calc(100% - 28px)}body.cg-body.cg-order-page #order-standard_cart{padding-bottom:20px}}
/* Empty-cart is a destructive action, so keep it distinct from primary actions while matching the theme. */
body.cg-body #order-standard_cart .empty-cart{margin:10px 0 0;text-align:right;line-height:1}
body.cg-body #order-standard_cart .empty-cart .btn#btnEmptyCart{margin:0;padding:9px 13px;border:0;border-radius:10px;background:linear-gradient(120deg,#df6d69,#ee9870);box-shadow:0 8px 18px rgba(221,103,96,.18);color:#fff;font-size:12px;font-weight:800;transition:.2s}
body.cg-body #order-standard_cart .empty-cart .btn#btnEmptyCart:hover{background:linear-gradient(120deg,#c95659,#df805e);box-shadow:0 11px 24px rgba(221,103,96,.26);color:#fff;transform:translateY(-1px)}
html.cg-dark body.cg-body #order-standard_cart .empty-cart .btn#btnEmptyCart{background:linear-gradient(120deg,#b8575d,#cf795d);box-shadow:0 8px 20px rgba(0,0,0,.2)}
/* Coupon area: bring the legacy tab, field and validation button into the same glass-card language. */
body.cg-body #order-standard_cart .view-cart-tabs{margin:18px 0 0;padding:0;border:0;background:transparent;}
body.cg-body #order-standard_cart .view-cart-tabs .nav-tabs{display:flex;align-items:flex-end;gap:8px;margin:0;padding:0;border:0;}
body.cg-body #order-standard_cart .view-cart-tabs .nav-tabs>li{margin:0;}
body.cg-body #order-standard_cart .view-cart-tabs .nav-tabs .nav-link{display:inline-flex;align-items:center;min-height:42px;padding:10px 17px;border:1px solid rgba(255,255,255,.86);border-bottom:0;border-radius:14px 14px 0 0;background:rgba(255,255,255,.58);box-shadow:0 -4px 14px rgba(48,68,120,.04);color:#596986;font-size:13px;font-weight:800;}
body.cg-body #order-standard_cart .view-cart-tabs .nav-tabs .nav-link.active{border-color:rgba(255,255,255,.9);background:linear-gradient(135deg,rgba(255,255,255,.88),rgba(235,241,255,.78));color:var(--cg-blue);}
body.cg-body #order-standard_cart .view-cart-tabs .tab-content{padding:17px 18px 18px;border:1px solid rgba(255,255,255,.88);border-radius:0 18px 18px 18px;background:linear-gradient(145deg,rgba(255,255,255,.72),rgba(239,244,255,.48));box-shadow:0 14px 34px rgba(48,68,120,.08);}
body.cg-body #order-standard_cart .view-cart-tabs .tab-content .form-group{margin:0 0 10px;}
body.cg-body #order-standard_cart .view-cart-tabs .tab-content .prepend-icon{position:relative;}
body.cg-body #order-standard_cart .view-cart-tabs .tab-content .prepend-icon .field-icon{display:none;}
body.cg-body #order-standard_cart .btn-checkout:hover{background:linear-gradient(120deg,#355eea,#5878ff);box-shadow:0 12px 25px rgba(66,105,255,.26);color:#fff;transform:translateY(-1px)}
html.cg-dark body.cg-body #order-standard_cart .btn-checkout{background:linear-gradient(120deg,#4e72ff,#7892ff);box-shadow:0 9px 20px rgba(0,0,0,.24)}
body.cg-body #order-standard_cart .view-cart-tabs .tab-content #inputPromotionCode{height:44px;margin:0;padding:10px 13px;border:1px solid rgba(130,146,181,.22);border-radius:12px;background:rgba(255,255,255,.72);box-shadow:none;color:var(--cg-ink);font-size:14px;}
body.cg-body #order-standard_cart .view-cart-tabs .tab-content #inputPromotionCode:focus{border-color:var(--cg-blue);box-shadow:0 0 0 4px rgba(66,105,255,.1);outline:0;}
body.cg-body #order-standard_cart .view-cart-tabs .tab-content button[name="validatepromo"]{min-height:42px;padding:9px 16px;border:1px solid rgba(120,143,190,.18);border-radius:11px;background:linear-gradient(120deg,var(--cg-blue),#6986ff);box-shadow:0 8px 18px rgba(66,105,255,.14);color:#fff;font-size:13px;font-weight:800;}
body.cg-body #order-standard_cart .view-cart-tabs .tab-content button[name="validatepromo"]:hover{transform:translateY(-1px);box-shadow:0 11px 24px rgba(66,105,255,.2);}
html.cg-dark body.cg-body #order-standard_cart .view-cart-tabs .nav-tabs .nav-link{border-color:rgba(177,196,235,.2);background:rgba(42,57,88,.72);color:#b9c8e2;}
html.cg-dark body.cg-body #order-standard_cart .view-cart-tabs .nav-tabs .nav-link.active{background:linear-gradient(135deg,rgba(48,76,132,.94),rgba(39,60,106,.9));color:#dce8ff;}
html.cg-dark body.cg-body #order-standard_cart .view-cart-tabs .tab-content{border-color:rgba(177,196,235,.2);background:linear-gradient(145deg,rgba(37,54,88,.88),rgba(25,38,67,.82));box-shadow:0 14px 34px rgba(0,0,0,.18);}
html.cg-dark body.cg-body #order-standard_cart .view-cart-tabs .tab-content #inputPromotionCode{border-color:rgba(177,196,235,.2);background:rgba(12,24,49,.4);color:#edf3ff;}
@media(max-width:760px){body.cg-body #order-standard_cart .view-cart-tabs .tab-content{padding:14px 13px 15px;border-radius:0 15px 15px 15px;}body.cg-body #order-standard_cart .view-cart-tabs .nav-tabs .nav-link{padding:9px 14px;font-size:12px;}}
/* Global WHMCS surface reset: normalize remaining native controls without changing their behavior. */
body.cg-body .btn{border-radius:10px;font-weight:750;transition:transform .2s,box-shadow .2s,background .2s,border-color .2s}
body.cg-body .btn-primary,body.cg-body .btn-info{border-color:transparent;background:linear-gradient(120deg,var(--cg-blue),#6986ff);box-shadow:0 8px 18px rgba(66,105,255,.14);color:#fff}
body.cg-body .btn-success{border-color:transparent;background:linear-gradient(120deg,#26a95a,#39bf70);box-shadow:0 8px 18px rgba(39,170,91,.14);color:#fff}
body.cg-body .btn-danger{border-color:transparent;background:linear-gradient(120deg,#df6d69,#ee9870);box-shadow:0 8px 18px rgba(221,103,96,.14);color:#fff}
body.cg-body .btn-warning{border-color:transparent;background:linear-gradient(120deg,#e9a23b,#f3bd61);box-shadow:0 8px 18px rgba(220,151,42,.14);color:#fff}
body.cg-body .btn-secondary,body.cg-body .btn-default{border:1px solid rgba(120,143,190,.2);background:rgba(255,255,255,.62);box-shadow:none;color:#596986}
body.cg-body .btn-link{background:transparent;border-color:transparent;box-shadow:none;color:var(--cg-blue)}
body.cg-body .btn-primary:hover,body.cg-body .btn-info:hover,body.cg-body .btn-success:hover,body.cg-body .btn-danger:hover,body.cg-body .btn-warning:hover,body.cg-body .btn-secondary:hover,body.cg-body .btn-default:hover{transform:translateY(-1px);color:#fff}
body.cg-body .btn-secondary:hover,body.cg-body .btn-default:hover{color:var(--cg-blue);background:rgba(238,243,255,.9);border-color:#9cb4ff}
body.cg-body .form-control,body.cg-body select.form-control,body.cg-body textarea.form-control,body.cg-body .custom-select,body.cg-body input[type=text],body.cg-body input[type=email],body.cg-body input[type=password],body.cg-body input[type=number]{min-height:40px;border:1px solid rgba(120,143,190,.2);border-radius:10px;background:rgba(255,255,255,.68);box-shadow:none;color:var(--cg-ink);outline:0}
body.cg-body .form-control:focus,body.cg-body select.form-control:focus,body.cg-body textarea.form-control:focus,body.cg-body .custom-select:focus,body.cg-body input[type=text]:focus,body.cg-body input[type=email]:focus,body.cg-body input[type=password]:focus,body.cg-body input[type=number]:focus{border-color:#8da8ff;box-shadow:0 0 0 4px rgba(66,105,255,.10)}
body.cg-body .input-group-text,body.cg-body .input-group-addon{border:1px solid rgba(120,143,190,.16);background:rgba(232,238,252,.72);color:#667590}
body.cg-body .alert{border:1px solid rgba(255,255,255,.72);border-radius:13px;background:rgba(255,255,255,.58);box-shadow:0 10px 28px rgba(48,68,120,.06);color:#596986}
body.cg-body .alert-info{background:rgba(224,241,255,.62);border-color:rgba(139,184,239,.35);color:#527195}
body.cg-body .alert-success{background:rgba(224,249,239,.68);border-color:rgba(144,218,184,.42);color:#28785c}
body.cg-body .alert-warning{background:rgba(255,244,215,.72);border-color:rgba(239,190,91,.42);color:#8a6830}
body.cg-body .alert-danger{background:rgba(255,231,231,.72);border-color:rgba(232,137,137,.42);color:#a14f54}
body.cg-body .card,body.cg-body .panel{border:1px solid rgba(255,255,255,.82);border-radius:17px;background:rgba(255,255,255,.54);box-shadow:0 14px 38px rgba(48,68,120,.09);backdrop-filter:blur(17px);overflow:hidden}
body.cg-body .card-header,body.cg-body .panel-heading{border-bottom:1px solid rgba(120,143,190,.12);background:rgba(255,255,255,.24);color:var(--cg-ink)}
body.cg-body .card-footer,body.cg-body .panel-footer{border-top:1px solid rgba(120,143,190,.12);background:rgba(255,255,255,.18)}
body.cg-body .list-group-item{border-color:rgba(120,143,190,.12);background:rgba(255,255,255,.3);color:#596986}
body.cg-body .list-group-item:hover{background:rgba(238,243,255,.72);color:var(--cg-blue)}
body.cg-body .table{border-color:rgba(120,143,190,.12);color:#596986;background:rgba(255,255,255,.3)}
body.cg-body .table thead th{border:0;background:rgba(232,238,252,.72);color:#52617d;font-weight:800}
body.cg-body .table td,body.cg-body .table th{border-color:rgba(120,143,190,.11);vertical-align:middle}
body.cg-body .table-striped tbody tr:nth-of-type(odd){background:rgba(255,255,255,.28)}
body.cg-body .table-hover tbody tr:hover{background:rgba(238,243,255,.7)}
body.cg-body .nav-tabs{border-bottom:1px solid rgba(120,143,190,.15);gap:7px}
body.cg-body .nav-tabs .nav-link{border:1px solid transparent;border-radius:10px 10px 0 0;color:#65718a;background:transparent}
body.cg-body .nav-tabs .nav-link:hover{border-color:rgba(120,143,190,.14);background:rgba(255,255,255,.42);color:var(--cg-blue)}
body.cg-body .nav-tabs .nav-link.active{border-color:rgba(120,143,190,.15) rgba(120,143,190,.15) transparent;background:rgba(255,255,255,.58);color:var(--cg-blue);font-weight:800}
body.cg-body .pagination .page-link{margin:0 3px;border:1px solid rgba(120,143,190,.16);border-radius:8px;background:rgba(255,255,255,.56);color:#596986}
body.cg-body .pagination .page-link:hover,body.cg-body .pagination .active .page-link{border-color:#b6c8ff;background:#edf2ff;color:var(--cg-blue)}
body.cg-body .badge{border-radius:7px;font-weight:750}
body.cg-body .label-success,body.cg-body .badge-success{background:#dff6e9;color:#21835c}body.cg-body .label-warning,body.cg-body .badge-warning{background:#fff0cd;color:#956a24}body.cg-body .label-danger,body.cg-body .badge-danger{background:#ffe2e2;color:#a14f54}
html.cg-dark body.cg-body .btn-secondary,html.cg-dark body.cg-body .btn-default{border-color:rgba(177,196,235,.2);background:rgba(42,57,88,.72);color:#d6e2fa}
html.cg-dark body.cg-body .form-control,html.cg-dark body.cg-body select.form-control,html.cg-dark body.cg-body textarea.form-control,html.cg-dark body.cg-body .custom-select,html.cg-dark body.cg-body input[type=text],html.cg-dark body.cg-body input[type=email],html.cg-dark body.cg-body input[type=password],html.cg-dark body.cg-body input[type=number]{border-color:rgba(177,196,235,.2);background:rgba(15,25,44,.7);color:#edf3ff}
html.cg-dark body.cg-body .input-group-text,html.cg-dark body.cg-body .input-group-addon{border-color:rgba(177,196,235,.18);background:rgba(54,72,108,.55);color:#c8d6ee}
html.cg-dark body.cg-body .alert{border-color:rgba(177,196,235,.18);background:rgba(39,54,84,.72);color:#b5c2d9}html.cg-dark body.cg-body .alert-info{background:rgba(41,74,103,.64);color:#b6d5ef}html.cg-dark body.cg-body .alert-success{background:rgba(25,78,67,.66);color:#9de8c4}html.cg-dark body.cg-body .alert-warning{background:rgba(100,75,38,.66);color:#ffd083}html.cg-dark body.cg-body .alert-danger{background:rgba(103,51,58,.66);color:#ffb6b6}
html.cg-dark body.cg-body .card,html.cg-dark body.cg-body .panel{border-color:rgba(177,196,235,.16);background:rgba(27,39,64,.74);box-shadow:0 20px 60px rgba(0,0,0,.25)}html.cg-dark body.cg-body .card-header,html.cg-dark body.cg-body .panel-heading,html.cg-dark body.cg-body .card-footer,html.cg-dark body.cg-body .panel-footer{border-color:rgba(177,196,235,.14);background:rgba(65,83,120,.24)}
html.cg-dark body.cg-body .list-group-item,html.cg-dark body.cg-body .table{border-color:rgba(177,196,235,.14);background:rgba(54,72,108,.3);color:#b8c7df}html.cg-dark body.cg-body .list-group-item:hover,html.cg-dark body.cg-body .table-hover tbody tr:hover{background:rgba(48,77,132,.72);color:#fff}html.cg-dark body.cg-body .table thead th{background:rgba(65,83,120,.46);color:#d6e2fa}html.cg-dark body.cg-body .table-striped tbody tr:nth-of-type(odd){background:rgba(54,72,108,.22)}
html.cg-dark body.cg-body .table>tbody>tr>td,html.cg-dark body.cg-body .table>tbody>tr>th{background:transparent;color:#b8c7df}
html.cg-dark body.cg-body .table>tbody>tr:hover>td,html.cg-dark body.cg-body .table>tbody>tr:hover>th{background:rgba(48,77,132,.72);color:#fff}
/* Support ticket composer: WHMCS ships Bootstrap Markdown, while some installations replace it with EasyMDE. */
body.cg-body .md-editor{overflow:hidden;border:1px solid rgba(120,143,190,.18);border-radius:16px;background:rgba(255,255,255,.5);box-shadow:0 12px 32px rgba(48,68,120,.07)}
body.cg-body .md-editor>.md-header,body.cg-body .md-editor .md-footer{padding:10px;border:0;background:rgba(238,243,255,.72)}
body.cg-body .md-editor>.md-header{border-bottom:1px solid rgba(120,143,190,.14)}
body.cg-body .md-editor .md-footer{min-height:42px;border-top:1px solid rgba(120,143,190,.12);color:#7a879f}
body.cg-body .md-editor>.md-input,body.cg-body .md-editor>.md-preview{min-height:300px;padding:18px;border:0;border-radius:0;background:rgba(255,255,255,.7);color:var(--cg-ink);box-shadow:none}
body.cg-body .md-editor>.md-input:focus,body.cg-body .md-editor>.md-input:hover{background:rgba(255,255,255,.86)}
body.cg-body .md-editor>.md-header .btn{border-color:rgba(120,143,190,.16);background:rgba(226,233,249,.86);color:#667590;box-shadow:none}
body.cg-body .md-editor>.md-header .btn:hover,body.cg-body .md-editor>.md-header .btn:focus,body.cg-body .md-editor>.md-header .btn.active{border-color:rgba(105,134,223,.3);background:rgba(205,218,250,.92);color:var(--cg-blue)}
body.cg-body .md-editor .md-controls .md-control{color:#8794aa}
html.cg-dark body.cg-body .md-editor,html.cg-dark body.cg-body .md-editor.active{border-color:rgba(177,196,235,.2);background:#111d33;box-shadow:0 16px 40px rgba(0,0,0,.18)}
html.cg-dark body.cg-body .md-editor>.md-header,html.cg-dark body.cg-body .md-editor .md-footer{border-color:rgba(177,196,235,.16);background:#223453;color:#91a2bd}
html.cg-dark body.cg-body .md-editor>.md-input,html.cg-dark body.cg-body .md-editor>.md-preview{border-color:rgba(177,196,235,.16);background:#111d33;color:#edf3ff}
html.cg-dark body.cg-body .md-editor>.md-input:focus,html.cg-dark body.cg-body .md-editor>.md-input:hover{background:#14223b;color:#fff}
html.cg-dark body.cg-body .md-editor>.md-input::placeholder{color:#7485a2}
html.cg-dark body.cg-body .md-editor>.md-header .btn{border-color:rgba(177,196,235,.17);background:#31476f;color:#c3d0e7}
html.cg-dark body.cg-body .md-editor>.md-header .btn:hover,html.cg-dark body.cg-body .md-editor>.md-header .btn:focus,html.cg-dark body.cg-body .md-editor>.md-header .btn.active{border-color:rgba(131,161,255,.36);background:#466195;color:#fff}
html.cg-dark body.cg-body .md-editor .md-controls .md-control{color:#91a2bd}
html.cg-dark body.cg-body .md-editor .md-controls .md-control:hover{color:#eef3ff}
html.cg-dark body.cg-body .md-editor.md-fullscreen-mode{background:#111d33}
html.cg-dark body.cg-body .md-editor.md-fullscreen-mode .md-header{background:#223453}
html.cg-dark body.cg-body .md-editor.md-fullscreen-mode .btn{background:#31476f;color:#c3d0e7}
html.cg-dark body.cg-body .md-editor.md-fullscreen-mode .btn:hover,html.cg-dark body.cg-body .md-editor.md-fullscreen-mode .btn:focus,html.cg-dark body.cg-body .md-editor.md-fullscreen-mode .btn.active{background:#466195;color:#fff}
html.cg-dark body.cg-body .md-editor.md-fullscreen-mode>.md-input,html.cg-dark body.cg-body .md-editor.md-fullscreen-mode>.md-preview{border-color:rgba(177,196,235,.16);background:#111d33;color:#edf3ff}
html.cg-dark body.cg-body .md-editor.md-fullscreen-mode>.md-input:focus,html.cg-dark body.cg-body .md-editor.md-fullscreen-mode>.md-input:hover{background:#14223b;color:#fff}
/* Bootstrap Markdown can apply its palette after initialization; these two final declarations intentionally win that late cascade. */
html.cg-dark body.cg-body .md-editor .md-header{background:#223453!important;color:#c3d0e7}
html.cg-dark body.cg-body .md-editor textarea.md-input,html.cg-dark body.cg-body .md-editor>.md-preview,html.cg-dark body.cg-body #inputMessage.md-input{border-color:rgba(177,196,235,.16)!important;border-style:solid;background:#111d33!important;color:#edf3ff;caret-color:#edf3ff}
body.cg-body.cg-ticket-page .EasyMDEContainer{overflow:hidden;border:1px solid rgba(120,143,190,.18);border-radius:16px;background:rgba(255,255,255,.5);box-shadow:0 12px 32px rgba(48,68,120,.07)}
body.cg-body.cg-ticket-page .EasyMDEContainer .editor-toolbar{display:flex;min-height:52px;padding:8px;align-items:center;gap:3px;border:0;border-bottom:1px solid rgba(120,143,190,.14);border-radius:0;background:rgba(238,243,255,.72);opacity:1}
body.cg-body.cg-ticket-page .EasyMDEContainer .editor-toolbar button,body.cg-body.cg-ticket-page .EasyMDEContainer .editor-toolbar a{border:1px solid transparent;border-radius:8px;color:#667590}
body.cg-body.cg-ticket-page .EasyMDEContainer .editor-toolbar button:hover,body.cg-body.cg-ticket-page .EasyMDEContainer .editor-toolbar button.active,body.cg-body.cg-ticket-page .EasyMDEContainer .editor-toolbar a:hover,body.cg-body.cg-ticket-page .EasyMDEContainer .editor-toolbar a.active{border-color:rgba(105,134,223,.22);background:rgba(215,225,252,.76);color:var(--cg-blue)}
body.cg-body.cg-ticket-page .EasyMDEContainer .editor-toolbar i.separator{border-color:rgba(120,143,190,.18)}
body.cg-body.cg-ticket-page .EasyMDEContainer .CodeMirror{min-height:300px;border:0;border-radius:0;background:rgba(255,255,255,.7);color:var(--cg-ink)}
body.cg-body.cg-ticket-page .EasyMDEContainer .CodeMirror-scroll{min-height:300px}
body.cg-body.cg-ticket-page .EasyMDEContainer .editor-preview,body.cg-body.cg-ticket-page .EasyMDEContainer .editor-preview-side{border-color:rgba(120,143,190,.18);background:#f4f7ff;color:var(--cg-ink)}
body.cg-body.cg-ticket-page .EasyMDEContainer .editor-statusbar{padding:9px 13px;border-top:1px solid rgba(120,143,190,.12);background:rgba(238,243,255,.64);color:#7a879f}
body.cg-body.cg-ticket-page .custom-file-label{border-color:rgba(120,143,190,.2);border-radius:10px;background:rgba(255,255,255,.68);color:#667590}
body.cg-body.cg-ticket-page .custom-file-label:after{border-color:rgba(120,143,190,.16);border-radius:0 9px 9px 0;background:rgba(232,238,252,.82);color:#596986}
html.cg-dark body.cg-body.cg-ticket-page .EasyMDEContainer{border-color:rgba(177,196,235,.2);background:rgba(24,37,63,.84);box-shadow:0 16px 40px rgba(0,0,0,.18)}
html.cg-dark body.cg-body.cg-ticket-page .EasyMDEContainer .editor-toolbar,html.cg-dark body.cg-body.cg-ticket-page .EasyMDEContainer .editor-toolbar.fullscreen{border-color:rgba(177,196,235,.16);background:#223453}
html.cg-dark body.cg-body.cg-ticket-page .EasyMDEContainer .editor-toolbar button,html.cg-dark body.cg-body.cg-ticket-page .EasyMDEContainer .editor-toolbar a{color:#aebed8}
html.cg-dark body.cg-body.cg-ticket-page .EasyMDEContainer .editor-toolbar button:hover,html.cg-dark body.cg-body.cg-ticket-page .EasyMDEContainer .editor-toolbar button.active,html.cg-dark body.cg-body.cg-ticket-page .EasyMDEContainer .editor-toolbar a:hover,html.cg-dark body.cg-body.cg-ticket-page .EasyMDEContainer .editor-toolbar a.active{border-color:rgba(131,161,255,.32);background:rgba(67,91,143,.7);color:#eef3ff}
html.cg-dark body.cg-body.cg-ticket-page .EasyMDEContainer .editor-toolbar i.separator{border-color:rgba(177,196,235,.2)}
html.cg-dark body.cg-body.cg-ticket-page .EasyMDEContainer .CodeMirror,html.cg-dark body.cg-body.cg-ticket-page .EasyMDEContainer .CodeMirror-fullscreen{background:#111d33;color:#edf3ff}
html.cg-dark body.cg-body.cg-ticket-page .EasyMDEContainer .CodeMirror-gutters{border-color:rgba(177,196,235,.14);background:#16243d}
html.cg-dark body.cg-body.cg-ticket-page .EasyMDEContainer .CodeMirror-linenumber,html.cg-dark body.cg-body.cg-ticket-page .EasyMDEContainer .CodeMirror-placeholder{color:#7485a2}
html.cg-dark body.cg-body.cg-ticket-page .EasyMDEContainer .CodeMirror-cursor{border-left-color:#edf3ff}
html.cg-dark body.cg-body.cg-ticket-page .EasyMDEContainer .CodeMirror-selected{background:rgba(102,132,205,.34)}
html.cg-dark body.cg-body.cg-ticket-page .EasyMDEContainer .editor-preview,html.cg-dark body.cg-body.cg-ticket-page .EasyMDEContainer .editor-preview-side{border-color:rgba(177,196,235,.18);background:#172641;color:#dbe6f8}
html.cg-dark body.cg-body.cg-ticket-page .EasyMDEContainer .editor-preview :where(h1,h2,h3,h4,h5,h6,strong),html.cg-dark body.cg-body.cg-ticket-page .EasyMDEContainer .editor-preview-side :where(h1,h2,h3,h4,h5,h6,strong){color:#f1f5ff}
html.cg-dark body.cg-body.cg-ticket-page .EasyMDEContainer .editor-statusbar{border-color:rgba(177,196,235,.14);background:#1b2a46;color:#91a2bd}
html.cg-dark body.cg-body.cg-ticket-page .custom-file-label{border-color:rgba(177,196,235,.2);background:#111d33;color:#b8c7df}
html.cg-dark body.cg-body.cg-ticket-page .custom-file-label:after{border-color:rgba(177,196,235,.18);background:#2b4067;color:#dce7fa}
html.cg-dark body.cg-body.cg-ticket-page .custom-file-input:focus~.custom-file-label{border-color:#83a1ff;box-shadow:0 0 0 4px rgba(101,132,231,.14)}
@media(max-width:760px){body.cg-body.cg-ticket-page .EasyMDEContainer .CodeMirror,body.cg-body.cg-ticket-page .EasyMDEContainer .CodeMirror-scroll{min-height:230px}}
/* The category label is useful in the store, but redundant on cart/config/checkout screens. */
body.cg-body.cg-order-page:not(.cg-store-page) #order-standard_cart .cart-sidebar{display:none;margin:0;height:0}
body.cg-body.cg-order-page:not(.cg-store-page) #order-standard_cart .cart-body{float:none;width:100%;padding:0}
/* Cart flow headings: give single-word Chinese titles a clearer editorial hierarchy. */
body.cg-body #order-standard_cart .cart-body>.header-lined{margin:0 0 20px;padding:5px 2px 0;border:0}
body.cg-body #order-standard_cart .cart-body>.header-lined h1{margin:0;color:var(--cg-ink);font-size:34px;font-weight:800;line-height:1.15;letter-spacing:-.065em}
body.cg-body #order-standard_cart .cart-body>.header-lined h1:before{display:block;margin:0 0 7px;color:var(--cg-blue);font-size:10px;font-weight:850;letter-spacing:.18em;line-height:1;text-transform:uppercase}
body.cg-body.cg-configure-page #order-standard_cart .cart-body>.header-lined h1:before{content:"CONFIGURE"}
body.cg-body.cg-review-page #order-standard_cart .cart-body>.header-lined h1:before{content:"ORDER REVIEW"}
body.cg-body.cg-checkout-page #order-standard_cart .cart-body>.header-lined h1:before{content:"CHECKOUT"}
body.cg-body.cg-configure-page #order-standard_cart .secondary-cart-body>p:first-child{margin:0 0 16px;color:var(--cg-muted);font-size:13px;line-height:1.6}
/* The configuration screen is self-explanatory; remove the duplicate process heading and intro. */
body.cg-body.cg-configure-page #order-standard_cart .cart-body>.header-lined,
body.cg-body.cg-configure-page #order-standard_cart .secondary-cart-body>p:first-child{display:none}
/* The cart contents already provide the context on the confirmation screen. */
body.cg-body.cg-review-page #order-standard_cart .cart-body>.header-lined{display:none}
/* Match the product-info card's own 18px top margin instead of using a viewport-specific offset. */
@media(min-width:761px){body.cg-body.cg-configure-page #order-standard_cart #scrollingPanelContainer{margin-top:18px}}
@media(max-width:760px){body.cg-body #order-standard_cart .cart-body>.header-lined{margin-bottom:16px;padding-top:2px}body.cg-body #order-standard_cart .cart-body>.header-lined h1{font-size:29px}body.cg-body #order-standard_cart .cart-body>.header-lined h1:before{margin-bottom:6px;font-size:9px}}
html.cg-dark body.cg-body .nav-tabs{border-color:rgba(177,196,235,.18)}html.cg-dark body.cg-body .nav-tabs .nav-link{color:#aebbd4}html.cg-dark body.cg-body .nav-tabs .nav-link.active{border-color:rgba(177,196,235,.2) rgba(177,196,235,.2) transparent;background:rgba(54,72,108,.55);color:#a9c0ff}html.cg-dark body.cg-body .pagination .page-link{border-color:rgba(177,196,235,.2);background:rgba(42,57,88,.72);color:#d6e2fa}
@media(max-width:760px){body.cg-body #order-standard_cart .products>.row{grid-template-columns:1fr;gap:10px}body.cg-body #order-standard_cart .products .product{min-height:158px;border-radius:17px}}
/* Use the available desktop canvas instead of the legacy 1180px / 50% column limits. */
body.cg-body.cg-order-page .cg-main{width:min(calc(100% - 40px),1680px)}
body.cg-body #order-standard_cart{max-width:none}
body.cg-body #order-standard_cart .products>.row>[class*=col-]{width:auto;max-width:none;float:none}
/* WHMCS emits two products per nested row; flatten those rows so all products share one responsive grid. */
body.cg-body #order-standard_cart .products{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
body.cg-body #order-standard_cart .products>.row{display:contents}
body.cg-body #order-standard_cart .products>.row>[class*=col-]{grid-column:auto;margin:0;padding:0}
@media(max-width:760px){body.cg-body #order-standard_cart .products{grid-template-columns:1fr;gap:10px}}
/* The active category tab already identifies the group; remove the duplicate product-list heading. */
body.cg-body.cg-store-page #order-standard_cart .cart-body>.header-lined{display:none}
/* Do not stretch short product descriptions to the full grid-row height. */
body.cg-body #order-standard_cart .products>.row{align-items:start}
body.cg-body #order-standard_cart .products .product{display:block;height:auto;min-height:0}
body.cg-body #order-standard_cart .products .product div.product-desc{flex:0 0 auto}
body.cg-body #order-standard_cart .products .product footer{display:flex;float:none;width:100%;box-sizing:border-box}
body.cg-body #order-standard_cart .products .product div.product-pricing{float:none;width:auto}
body.cg-body #order-standard_cart .products .product .btn-order-now{float:none;width:auto}
body.cg-body #order-standard_cart .products .product .btn-order-now{background:linear-gradient(120deg,var(--cg-blue),#6986ff);box-shadow:0 10px 22px rgba(66,105,255,.22);color:#fff}
body.cg-body #order-standard_cart .products .product .btn-order-now:hover{background:linear-gradient(120deg,#5477ff,#7891ff);box-shadow:0 13px 26px rgba(66,105,255,.3);color:#fff}
html.cg-dark body.cg-body #order-standard_cart .products .product .btn-order-now{background:linear-gradient(120deg,#6f8eff,#8a9fff);color:#fff}
