/* Compact staff checkout: entry and payment on the left, review on the right. */
#customerCheckoutView .quick-payment-layout { width:100%; max-width:1240px; gap:14px; }
#customerCheckoutView .quick-payment-layout [hidden] { display:none !important; }
#customerCheckoutView .customer-management-head { margin:0 0 12px; padding:0; }
#customerCheckoutView .customer-management-head h2 { margin:0; font-size:22px; }
#reservationCheckoutContext { margin:0 0 14px; padding:10px 14px; border:1px solid var(--lucky-border, #D9C2B8); border-left:3px solid var(--lucky-gold, #D5B26A); border-radius:8px; background:var(--lucky-surface, #FFF9F5); color:var(--lucky-text-muted, #7A6758); font-size:13px; line-height:1.6; overflow-wrap:anywhere; }
#customerCheckoutView .quick-payment-customer { grid-template-columns:minmax(0,1fr) auto; gap:12px; padding:14px 18px; border:1px solid var(--lucky-border, #D9C2B8); border-radius:10px; background:var(--lucky-surface, #FFF9F5); }
#customerCheckoutView .quick-payment-customer span { font-size:12px; font-weight:600; color:var(--lucky-text-muted, #7A6758); }
#customerCheckoutView #quickPaymentCustomerName { display:block; margin:4px 0; font-size:24px; line-height:1.3; color:var(--lucky-brown-deep, #4B3A2B); }
#customerCheckoutView #quickPaymentCustomerMeta { margin:0; font-size:13px; line-height:1.6; overflow-wrap:anywhere; }
#customerCheckoutView .quick-payment-customer button { min-height:44px; white-space:nowrap; }

#quickPaymentForm { display:grid; grid-template-columns:minmax(0,1fr) 300px; align-items:start; gap:14px; padding:0; border:0; background:transparent; }
#quickPaymentForm > .quick-payment-step { grid-column:1; min-width:0; padding:18px; border:1px solid var(--lucky-border, #D9C2B8); border-radius:10px; background:var(--lucky-surface, #FFF9F5); }
#quickPaymentForm .quick-payment-step-heading { display:grid; grid-template-columns:26px minmax(0,1fr); align-items:center; gap:9px; margin-bottom:16px; }
#quickPaymentForm .quick-payment-step-heading:has(#gcCheckoutShortcut) { grid-template-columns:26px minmax(0,1fr) auto; }
#quickPaymentForm .quick-payment-step-heading h3 { margin:0; font-size:18px; line-height:1.4; color:var(--lucky-brown-deep, #4B3A2B); }
#quickPaymentForm .quick-payment-step-number { display:grid; place-items:center; width:26px; height:26px; border-radius:50%; background:var(--lucky-yellow, #F3E7BF); color:var(--lucky-brown-deep, #4B3A2B); font-size:14px; font-weight:700; }
#quickPaymentForm #gcCheckoutShortcut { justify-self:end; min-height:44px; padding:8px 10px; margin:0; border:1px solid var(--lucky-border, #D9C2B8) !important; border-radius:6px !important; background:transparent !important; color:var(--lucky-brown, #5C4835) !important; font-size:13px; }
#quickPaymentForm .quick-payment-primary-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:14px 16px; }
#quickPaymentForm .quick-payment-field { min-width:0; }
#quickPaymentForm .quick-payment-field > label { display:block; margin:0 0 6px; color:var(--lucky-brown, #5C4835); font-size:14px; font-weight:600; }
#quickPaymentForm :is(input,select) { max-width:100%; min-width:0; min-height:48px; box-sizing:border-box; font-size:16px; }
#quickPaymentForm button { min-height:44px; }
#quickPaymentForm .quick-payment-item select { width:100%; min-height:54px; padding:10px 12px; margin:0; border:1px solid var(--lucky-border, #D9C2B8) !important; border-radius:8px !important; font-size:16px; }
#quickPaymentForm .quick-payment-category-custom { margin-top:8px; }
#quickPaymentForm .quick-payment-amount { display:flex; align-items:center; width:100%; max-width:none; min-height:54px; border:1px solid var(--lucky-gold, #D5B26A); border-radius:8px; overflow:hidden; background:var(--lucky-white, #FFF); }
#quickPaymentForm .quick-payment-amount span { flex:0 0 auto; padding-left:12px; color:var(--lucky-text-muted, #7A6758); font-size:22px; }
#quickPaymentForm .quick-payment-amount input { width:100%; height:100%; min-height:0; line-height:1.2; padding:10px 12px; margin:0; border:0 !important; border-radius:0 !important; box-shadow:none !important; font-size:26px; }
#quickPaymentForm .quick-payment-amount input::placeholder { font-size:16px; font-weight:400; }
#quickPaymentAmount,#quickPaymentMemberDeduction { --lucky-ui-component-bg:transparent; --lucky-ui-component-border:0 solid transparent; --lucky-ui-component-radius:0; --lucky-ui-component-shadow:none; }
#quickPaymentForm .checkout-field-hint { margin:6px 0 0; color:var(--lucky-text-muted, #7A6758); font-size:13px; line-height:1.6; }
#quickPaymentForm .checkout-date-field { display:flex; grid-column:1/-1; align-items:center; flex-wrap:wrap; gap:8px 12px; margin-top:2px; padding-top:14px; border-top:1px solid var(--lucky-border, #D9C2B8); }
#quickPaymentForm .checkout-date-field > label { margin:0; white-space:nowrap; }
#quickPaymentForm .checkout-date-field input { width:172px; min-height:44px; margin:0; padding:8px 10px; border-radius:6px !important; }
#quickPaymentForm .checkout-date-field .checkout-field-hint { flex:1 1 180px; margin:0; }

#quickPaymentForm .quick-payment-member { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1fr); align-items:start; gap:12px; margin:0 0 16px; padding:14px; border:1px solid var(--lucky-warning-border, #E4C889); border-radius:8px; background:var(--lucky-warning-soft, #FFF4DE); }
#quickPaymentForm .quick-payment-member-balance strong { display:block; margin:4px 0; font-size:24px; color:var(--lucky-brown-deep, #4B3A2B); }
#quickPaymentForm .quick-payment-member-balance p { margin:0; font-size:13px; line-height:1.6; }
#quickPaymentForm .checkout-wallet-actions { display:flex; flex-wrap:wrap; gap:8px; }
#quickPaymentForm .checkout-wallet-actions button { min-height:44px; margin:0; padding:8px 12px; font-size:14px; }
#customerCheckoutView #quickPaymentUseWallet { border:1px solid var(--lucky-gold, #D5B26A) !important; border-radius:6px !important; background:var(--lucky-yellow, #F3E7BF) !important; color:var(--lucky-brown-deep, #4B3A2B) !important; font-weight:700; }
#customerCheckoutView :is(#quickPaymentUseWallet,#quickPaymentSubmit):disabled { opacity:.55; cursor:not-allowed; }
#quickPaymentWalletAfter { margin:8px 0; font-size:13px; line-height:1.6; }
#quickPaymentPartialWallet summary { min-height:44px; padding:10px 0; box-sizing:border-box; color:var(--lucky-brown, #5C4835); font-size:13px; line-height:1.6; cursor:pointer; }
#quickPaymentPartialWallet label { display:block; margin-top:6px; font-size:13px; }
#quickPaymentPartialWallet .quick-payment-member-input { max-width:260px; border:1px solid var(--lucky-border, #D9C2B8); border-radius:6px; overflow:hidden; }
#quickPaymentPartialWallet input { width:100%; min-width:0; }
#quickPaymentForm .quick-payment-methods { margin:0; padding:0; border:0; min-width:0; }
#quickPaymentForm .quick-payment-methods legend { margin-bottom:8px; font-size:14px; font-weight:600; }
#quickPaymentForm .quick-payment-method-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(90px,1fr)); gap:8px; }
#customerCheckoutView .quick-payment-method { min-height:46px; padding:8px; border:1px solid var(--lucky-border, #D9C2B8) !important; border-radius:6px !important; background:var(--lucky-white, #FFF) !important; color:var(--lucky-brown, #5C4835) !important; box-shadow:none !important; font-size:14px; }
#customerCheckoutView .quick-payment-method.is-active { border-color:var(--lucky-gold, #D5B26A) !important; background:var(--lucky-yellow, #F3E7BF) !important; color:var(--lucky-brown-deep, #4B3A2B) !important; box-shadow:inset 0 0 0 1px var(--lucky-gold, #D5B26A) !important; }
#quickPaymentForm .quick-payment-custom { margin-top:12px; }
#quickPaymentForm .quick-payment-member:has(#quickPaymentPartialWallet[hidden]) { grid-template-columns:minmax(0,1fr); padding:12px; border-color:var(--lucky-border, #D9C2B8); background:var(--lucky-surface-muted, #FCF5F2); }
#quickPaymentForm .quick-payment-member:has(#quickPaymentPartialWallet[hidden]) .quick-payment-member-balance { display:flex; align-items:center; flex-wrap:wrap; gap:6px 10px; }
#quickPaymentForm .quick-payment-member:has(#quickPaymentPartialWallet[hidden]) .quick-payment-member-balance strong { margin:0; font-size:18px; }
#quickPaymentForm .quick-payment-member-field:has(#quickPaymentPartialWallet[hidden]) { display:none; }
#quickPaymentForm .quick-payment-custom label { display:block; margin-bottom:6px; font-size:14px; }
#quickPaymentForm .quick-payment-topup { margin-top:16px; padding:14px; border:1px solid var(--lucky-border, #D9C2B8); border-radius:8px; background:var(--lucky-surface-muted, #FCF5F2); }
#quickPaymentForm .quick-payment-topup-fields { gap:12px; }
#quickPaymentForm .topup-preview { padding:12px; border-color:var(--lucky-gold, #D5B26A); border-radius:8px; background:var(--lucky-yellow, #F3E7BF); color:var(--lucky-brown-deep, #4B3A2B); }

#quickPaymentForm > .checkout-review { position:sticky; top:80px; grid-column:2; grid-row:1/span 2; background:var(--lucky-surface, #FFF9F5); }
#quickPaymentForm .checkout-totals { display:grid; grid-template-columns:minmax(0,1fr); gap:0; border:1px solid var(--lucky-border, #D9C2B8); border-radius:8px; overflow:hidden; }
#quickPaymentForm .checkout-totals > div { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px; border:0; border-radius:0; background:var(--lucky-surface-muted, #FCF5F2); }
#quickPaymentForm .checkout-totals span { color:var(--lucky-text-muted, #7A6758); font-size:13px; }
#quickPaymentForm .checkout-totals strong { color:var(--lucky-brown-deep, #4B3A2B); font-size:22px; text-align:right; overflow-wrap:anywhere; }
#quickPaymentForm .checkout-totals #quickPaymentRemaining { border-top:1px solid var(--lucky-border, #D9C2B8); background:var(--lucky-yellow, #F3E7BF); }
#quickPaymentForm #quickPaymentRemaining strong { font-size:28px; }
#quickPaymentForm .quick-payment-actions { display:grid; grid-template-columns:minmax(0,1fr); gap:10px; margin-top:16px; }
#customerCheckoutView #quickPaymentSubmit { width:100%; min-height:48px; padding:12px; border:1px solid var(--lucky-gold, #D5B26A) !important; border-radius:8px !important; background:var(--lucky-yellow, #F3E7BF) !important; color:var(--lucky-brown-deep, #4B3A2B) !important; font-size:16px; }
#quickPaymentForm .quick-payment-message { margin:0; font-size:13px; line-height:1.6; }
#quickPaymentForm :is(input,select,button,summary):focus-visible { outline:2px solid var(--lucky-brown-soft, #79624D); outline-offset:2px; }

@media(max-width:950px) {
  #customerCheckoutView .quick-payment-layout { max-width:760px; }
  #quickPaymentForm { grid-template-columns:minmax(0,1fr); }
  #quickPaymentForm > .checkout-review { position:static; grid-column:1; grid-row:auto; }
}
@media(max-width:600px) {
  #customerCheckoutView .quick-payment-customer { position:relative; display:block; padding:12px; }
  #customerCheckoutView .quick-payment-customer > div > span { padding-right:86px; }
  #customerCheckoutView #quickPaymentCustomerName { padding-right:86px; font-size:22px; }
  #customerCheckoutView .quick-payment-customer button { position:absolute; top:12px; right:12px; padding:8px 10px; font-size:13px; }
  #quickPaymentForm > .quick-payment-step { padding:14px; }
  #quickPaymentForm .quick-payment-step-heading:has(#gcCheckoutShortcut) { grid-template-columns:26px minmax(0,1fr); }
  #quickPaymentForm #gcCheckoutShortcut { grid-column:2; justify-self:start; }
  #quickPaymentForm .quick-payment-primary-fields,#quickPaymentForm .quick-payment-member { grid-template-columns:minmax(0,1fr); }
  #quickPaymentForm .checkout-date-field { display:grid; grid-template-columns:minmax(0,1fr); }
  #quickPaymentForm .checkout-date-field input { width:100%; }
  #quickPaymentForm .quick-payment-method-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #quickPaymentForm .quick-payment-method:last-child { grid-column:1/-1; }
  #quickPaymentForm .quick-payment-topup-fields { grid-template-columns:minmax(0,1fr); }
  #quickPaymentForm .quick-payment-step-heading h3 { font-size:17px; }
}

/* Match the service selector and amount frame, including their outer spacing. */
#quickPaymentForm .quick-payment-item select,
#quickPaymentForm .checkout-total-field > .quick-payment-amount { box-sizing:border-box; width:100%; height:54px; min-height:54px; margin:0; }
