.mgs-spend-tr td{padding:12px 0!important}
.mgs-spend-panel{--mgs-gold:#c9a24b;--mgs-ink:#111c1e;box-sizing:border-box;padding:12px 14px;margin:10px 0 4px;background:#fff;border:1px solid #e6e2d8;border-left:2px solid var(--mgs-gold);border-radius:4px;font-family:inherit;color:var(--mgs-ink);width:100%}
.mgs-spend-row{display:grid;grid-template-columns:minmax(80px,1fr) minmax(155px,1.5fr) auto;gap:12px;align-items:end;padding:10px 0;margin:0;border:0;border-bottom:1px solid #eeeae1}
.mgs-spend-row:last-child{border-bottom:0}
.mgs-spend-identity{display:flex;flex-direction:column;gap:3px;align-self:center;min-width:0}
.mgs-spend-identity strong{font-size:13px;font-weight:600;color:var(--mgs-ink)}
.mgs-spend-identity span{font-size:12px;color:#667174}
.mgs-spend-control{display:flex;align-items:end;gap:7px;min-width:0}
.mgs-spend-control label{display:flex;flex-direction:column;gap:5px;flex:1;min-width:0;margin:0;font:inherit;font-size:12px;color:#586568}
.mgs-spend-control input{width:100%!important;min-width:0!important;height:40px!important;min-height:40px!important;box-sizing:border-box!important;padding:8px 10px!important;border:1px solid #d6d9d7!important;border-radius:4px!important;background:#fff!important;color:#111c1e!important;box-shadow:none!important;font-size:14px!important}
.mgs-spend-control input:focus{outline:1px solid #c9a24b!important;border-color:#c9a24b!important}
.mgs-spend-save{box-sizing:border-box;min-height:40px;white-space:nowrap;border:1px solid #111c1e!important;border-radius:4px!important;background:#111c1e!important;color:#fff!important;padding:0 13px;font-size:12px;font-weight:600;cursor:pointer;transition:background .2s,border-color .2s}
.mgs-spend-save:hover,.mgs-spend-save:focus{background:#293c3f!important;border-color:#293c3f!important;color:#fff!important}
.mgs-spend-save:disabled{opacity:.55;cursor:default}
.mgs-spend-left{font-size:12px;white-space:nowrap;color:#6b7475;align-self:center;text-align:right}
.mgs-spend-left strong{font-weight:600;color:#111c1e}.mgs-spend-left-label{display:block;margin:0 0 2px}
.mgs-spend-feedback{grid-column:1/-1;font-size:12px;color:#556b60}
.mgs-spend-feedback:empty{display:none}
.mgs-wallet-applied{font-size:12px;color:#5e6869}
.mgs-credit-row th,.mgs-credit-row td{color:#111c1e!important}
@media(max-width:650px){.mgs-spend-panel{padding:12px}.mgs-spend-row{grid-template-columns:minmax(0,1fr) auto;gap:9px}.mgs-spend-identity{grid-column:1/-1}.mgs-spend-control{grid-column:1/2}.mgs-spend-left{grid-column:2/3;text-align:right;max-width:90px;white-space:normal}}
@media(max-width:370px){.mgs-spend-row{grid-template-columns:1fr}.mgs-spend-control,.mgs-spend-identity,.mgs-spend-left{grid-column:1/-1}.mgs-spend-left{text-align:left;max-width:none}}

body.woocommerce-checkout .woocommerce-checkout-review-order-table tr.cart-discount:has(.mgs-wallet-applied){display:none!important}
body.woocommerce-checkout .woocommerce-checkout-review-order-table tr.mgs-checkout-gift-row{display:table-row!important;background:#fff!important}
body.woocommerce-checkout .woocommerce-checkout-review-order-table tr.mgs-checkout-gift-row>td{box-sizing:border-box!important;padding:10px 0 12px!important;vertical-align:top!important;background:transparent!important;border:0!important;text-align:left!important;width:100%!important}
body.woocommerce-checkout .woocommerce-checkout-review-order-table .mgs-checkout-gift-row .mgs-gift-payment-heading{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:10px!important;margin:0 0 12px!important;padding:0 0 12px!important;border-bottom:1px solid #e8e2d5!important;color:#111c1e!important;font-size:13px!important;line-height:1.45!important}
body.woocommerce-checkout .woocommerce-checkout-review-order-table .mgs-gift-payment-heading strong{font-weight:600!important;font-size:13px!important;color:#111c1e!important}
body.woocommerce-checkout .woocommerce-checkout-review-order-table .mgs-gift-payment-heading span,body.woocommerce-checkout .woocommerce-checkout-review-order-table .mgs-gift-payment-heading .woocommerce-Price-amount{white-space:nowrap!important;color:#111c1e!important;font-weight:600!important}
body.woocommerce-checkout .woocommerce-checkout-review-order-table tr.mgs-checkout-gift-row .mgs-spend-panel{display:block!important;box-sizing:border-box!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;border-radius:0!important;width:100%!important;min-width:0!important;color:#111c1e!important;box-shadow:none!important}
body.woocommerce-checkout .woocommerce-checkout-review-order-table tr.mgs-checkout-gift-row .mgs-spend-row{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(142px,1.15fr) auto!important;gap:10px!important;align-items:center!important;margin:0!important;padding:5px 0!important;border:0!important;background:transparent!important;float:none!important;min-width:0!important;box-sizing:border-box!important}
body.woocommerce-checkout .woocommerce-checkout-review-order-table .mgs-spend-identity{display:flex!important;flex-direction:column!important;gap:2px!important;min-width:0!important;align-items:flex-start!important;text-align:left!important}
body.woocommerce-checkout .woocommerce-checkout-review-order-table .mgs-spend-identity strong{font-size:13px!important;font-weight:600!important;color:#111c1e!important;white-space:nowrap!important}
body.woocommerce-checkout .woocommerce-checkout-review-order-table .mgs-spend-identity span{font-size:12px!important;color:#6f7778!important;white-space:normal!important}
body.woocommerce-checkout .woocommerce-checkout-review-order-table .mgs-spend-control{display:flex!important;gap:7px!important;align-items:end!important;justify-content:flex-start!important;min-width:0!important;margin:0!important;padding:0!important;width:auto!important}
body.woocommerce-checkout .woocommerce-checkout-review-order-table .mgs-spend-control label{display:flex!important;flex:1 1 auto!important;flex-direction:column!important;min-width:0!important;gap:4px!important;padding:0!important;margin:0!important;text-align:left!important;font-family:inherit!important;font-size:12px!important;font-weight:400!important;line-height:1.3!important;color:#6b7475!important;float:none!important;width:auto!important}
body.woocommerce-checkout .woocommerce-checkout-review-order-table .mgs-spend-control input{box-sizing:border-box!important;margin:0!important;padding:8px 10px!important;width:100%!important;min-width:0!important;max-width:none!important;height:41px!important;min-height:41px!important;line-height:1.3!important;background:#fff!important;border:1px solid #d9dad6!important;border-radius:4px!important;box-shadow:none!important;color:#111c1e!important;font-family:inherit!important;font-size:14px!important;float:none!important}
body.woocommerce-checkout .woocommerce-checkout-review-order-table .mgs-spend-control input:focus{outline:1px solid #c9a24b!important;border-color:#c9a24b!important}
body.woocommerce-checkout .woocommerce-checkout-review-order-table .mgs-spend-save{display:inline-flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;min-height:41px!important;height:41px!important;line-height:1.2!important;padding:0 12px!important;margin:0!important;border:1px solid #111c1e!important;border-radius:4px!important;background:#111c1e!important;color:#fff!important;white-space:nowrap!important;font-family:inherit!important;font-size:12px!important;font-weight:600!important;cursor:pointer!important;float:none!important;box-shadow:none!important;text-transform:none!important;letter-spacing:0!important}
body.woocommerce-checkout .woocommerce-checkout-review-order-table .mgs-spend-save:hover{background:#293b3e!important;color:#fff!important}
body.woocommerce-checkout .woocommerce-checkout-review-order-table .mgs-spend-left{font-size:12px!important;color:#737c7c!important;white-space:normal!important;text-align:right!important;margin:0!important;align-self:center!important;min-width:0!important}
body.woocommerce-checkout .woocommerce-checkout-review-order-table .mgs-spend-left strong{font-size:12px!important;color:#111c1e!important;font-weight:600!important}body.woocommerce-checkout .woocommerce-checkout-review-order-table .mgs-spend-left-label{display:block!important;margin:0 0 2px!important}
@media(max-width:840px){body.woocommerce-checkout .woocommerce-checkout-review-order-table tr.mgs-checkout-gift-row .mgs-spend-row{grid-template-columns:minmax(0,1fr) minmax(132px,1.4fr)!important}body.woocommerce-checkout .woocommerce-checkout-review-order-table .mgs-spend-left{grid-column:1/-1!important;text-align:left!important}}
@media(max-width:520px){body.woocommerce-checkout .woocommerce-checkout-review-order-table tr.mgs-checkout-gift-row .mgs-spend-row{grid-template-columns:1fr!important}body.woocommerce-checkout .woocommerce-checkout-review-order-table .mgs-spend-identity,body.woocommerce-checkout .woocommerce-checkout-review-order-table .mgs-spend-control,body.woocommerce-checkout .woocommerce-checkout-review-order-table .mgs-spend-left{grid-column:1/-1!important}body.woocommerce-checkout .woocommerce-checkout-review-order-table .mgs-spend-left{text-align:right!important}}
body.woocommerce-checkout .woocommerce-checkout-review-order-table .mgs-remove-wallet{display:inline-block!important;align-self:flex-start!important;width:auto!important;margin-top:2px!important;padding:0!important;font-size:11px!important;line-height:1.25!important;color:#867042!important;text-decoration:underline!important;text-underline-offset:2px!important;background:transparent!important;border:0!important}
body.woocommerce-checkout .woocommerce-checkout-review-order-table .mgs-remove-wallet:hover{color:#111c1e!important}

.mgs-spend-row{grid-template-columns:minmax(110px,1fr) minmax(180px,1.25fr)!important;align-items:center!important}
.mgs-spend-balances{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:1px!important;margin:3px 0!important;font-size:12px!important;line-height:1.5!important;color:#687275!important}
.mgs-spend-balances .mgs-spend-remaining{color:#111c1e!important;font-size:12px!important;font-weight:600!important}
body.woocommerce-checkout .woocommerce-checkout-review-order-table tr.mgs-checkout-gift-row .mgs-spend-row{grid-template-columns:minmax(0,1fr) minmax(170px,1.25fr)!important}
body.woocommerce-checkout .woocommerce-checkout-review-order-table .mgs-spend-balances{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:2px!important}
body.woocommerce-checkout .woocommerce-checkout-review-order-table .mgs-spend-balances span{font-size:12px!important;line-height:1.4!important;color:#697574!important}
body.woocommerce-checkout .woocommerce-checkout-review-order-table .mgs-spend-balances .mgs-spend-remaining{color:#111c1e!important;font-weight:600!important}
@media(max-width:620px){.mgs-spend-row,body.woocommerce-checkout .woocommerce-checkout-review-order-table tr.mgs-checkout-gift-row .mgs-spend-row{grid-template-columns:1fr!important}.mgs-spend-identity,.mgs-spend-control{grid-column:1/-1!important}}
