/* Approved Wallet and Share Credit presentation. All live values, form IDs,
   validation and hidden states remain owned by the existing wallet controller. */
@layer royal-popups {
  body[data-page="home"] #customer-wallet-modal {
    --wallet-gold: #f3d875;
    --wallet-ink: #fff5ed;
    --wallet-muted: #cda8dd;
    --wallet-green: #45f58f;
    --wallet-book: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 7c-4-3-8-3-12-2v23c4-1 8-1 12 2 4-3 8-3 12-2V5c-4-1-8-1-12 2v23M7 10l5 1M7 15l5 1M20 11l5-1M20 16l5-1'/%3E%3C/svg%3E");
    --wallet-receipt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 32' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 2h15l4 4v24H5ZM9 10h3m4 0h4M9 16h11M9 22h3m4 0h4'/%3E%3C/svg%3E");
    --wallet-send: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='m2 13 28-11-8 28-8-9-5 5 1-9 14-10-17 8Z'/%3E%3C/svg%3E");
    position: fixed !important;
    inset: var(--royal-modal-inset, 0) !important;
    z-index: 12000 !important;
    align-items: var(--royal-modal-align, center) !important;
    justify-content: center !important;
    padding: var(--royal-modal-padding, 16px) !important;
    overflow: hidden !important;
    background: var(--royal-modal-backdrop, rgba(17, 3, 27, .48)) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
  }
  body[data-page="home"] #customer-wallet-modal:not([hidden]) { display: flex !important; }
  body[data-page="home"] #customer-wallet-modal[hidden] { display: none !important; }
  body[data-page="home"] #customer-wallet-modal > .customer-wallet-panel {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    gap: clamp(9px, 2.3vw, 12px) !important;
    width: min(474px, 100%) !important;
    max-width: 474px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-height: var(--royal-modal-max-height, 100%) !important;
    margin: 0 !important;
    padding: 17px clamp(13px, 3.5vw, 18px) 15px !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    scrollbar-width: thin !important;
    scrollbar-color: #674078 #1b052b !important;
    border: 1px solid #d6b75e !important;
    border-radius: 22px !important;
    background: radial-gradient(ellipse at 50% 0, rgba(73, 5, 102, .24), transparent 48%), linear-gradient(150deg, #2b0a40, #1b052b 72%, #20072e) !important;
    box-shadow: inset 0 1px rgba(255, 230, 179, .12), 0 13px 32px #07000bb3 !important;
    color: var(--wallet-ink) !important;
    font-family: "Times New Roman", Georgia, serif !important;
  }
  body[data-page="home"] #customer-wallet-modal > .customer-wallet-panel > * { flex-shrink: 0 !important; }
  body[data-page="home"] #customer-wallet-title {
    order: 0 !important;
    display: block !important;
    min-height: 30px !important;
    margin: 0 33px 6px !important;
    padding: 2px 0 0 !important;
    color: var(--wallet-ink) !important;
    font: 700 clamp(20px, 5.25vw, 26px)/1.15 "Times New Roman", Georgia, serif !important;
    text-align: center !important;
    text-shadow: 0 2px 2px #13001c !important;
    text-transform: none !important;
    letter-spacing: normal !important;
  }
  body[data-page="home"] #customer-wallet-title::before,
  body[data-page="home"] #customer-wallet-title::after { content: none !important; display: none !important; }
  body[data-page="home"] #customer-wallet-modal :is(#customer-wallet-close, #customer-wallet-back) {
    position: absolute !important;
    top: 13px !important;
    display: grid !important;
    place-items: center !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    margin: 0 !important;
    padding: 0 0 2px !important;
    border: 1px solid #d6b75e !important;
    border-radius: 50% !important;
    background: linear-gradient(145deg, #320d49, #190425) !important;
    color: var(--wallet-ink) !important;
    -webkit-text-fill-color: var(--wallet-ink) !important;
    box-shadow: inset 0 1px rgba(255,255,255,.13), 0 2px 4px #09000c !important;
    text-shadow: none !important;
    font: 400 22px/1 Arial, sans-serif !important;
    -webkit-tap-highlight-color: transparent !important;
  }
  body[data-page="home"] #customer-wallet-close { right: 13px !important; left: auto !important; }
  body[data-page="home"] #customer-wallet-back { left: 13px !important; right: auto !important; font-size: 27px !important; }
  body[data-page="home"] #customer-wallet-modal .customer-wallet-total {
    order: 1 !important;
    position: relative !important;
    isolation: isolate !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 2px !important;
    min-height: clamp(99px, 25.5vw, 123px) !important;
    margin: 0 !important;
    padding: 15px 13px 15px 43% !important;
    overflow: hidden !important;
    border: 1px solid #76508b !important;
    border-radius: 13px !important;
    background: linear-gradient(145deg, #280938, #1e062c) !important;
    box-shadow: inset 0 1px rgba(255,255,255,.04) !important;
  }
  body[data-page="home"] #customer-wallet-modal .customer-wallet-total::after {
    content: "" !important;
    position: absolute !important;
    z-index: -2 !important;
    inset: 10px 12px !important;
    border: 1px solid #5c2875 !important;
    border-radius: 10px !important;
    background: linear-gradient(120deg, #3c104e, #290736 65%, #350b48) !important;
    box-shadow: inset 0 1px rgba(255,255,255,.04), 0 3px 5px #0c0013aa !important;
    pointer-events: none !important;
  }
  body[data-page="home"] #customer-wallet-modal .customer-wallet-total::before {
    content: "" !important;
    position: absolute !important;
    z-index: -1 !important;
    width: 26% !important;
    height: 68% !important;
    left: 11% !important;
    top: 16% !important;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 110 110' fill='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%23fff1a0'/%3E%3Cstop offset='.35' stop-color='%23f5bd3b'/%3E%3Cstop offset='.68' stop-color='%239e660d'/%3E%3Cstop offset='1' stop-color='%23ffe891'/%3E%3C/linearGradient%3E%3ClinearGradient id='p' x2='1' y2='1'%3E%3Cstop stop-color='%234b2543'/%3E%3Cstop offset='1' stop-color='%23130d1d'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M22 31 66 12q5-2 7 4l4 11' stroke='%23100918' stroke-width='8'/%3E%3Cpath d='M20 27 65 10q5-2 7 4l4 11' stroke='url(%23g)' stroke-width='4'/%3E%3Cpath d='m23 29 57-9 4 10' stroke='%23ffd970' stroke-width='3'/%3E%3Crect x='18' y='31' width='76' height='66' rx='8' fill='%230b0610'/%3E%3Cpath d='M25 28h59q8 0 8 8v52q0 8-8 8l-59-4q-8 0-8-8V36q0-8 8-8Z' fill='url(%23p)' stroke='%23895814' stroke-width='6'/%3E%3Cpath d='M24 26h59q8 0 8 8v52q0 8-8 8l-59-4q-8 0-8-8V34q0-8 8-8Z' fill='url(%23p)' stroke='url(%23g)' stroke-width='4'/%3E%3Cpath d='M23 33h59v51l-59-3Z' stroke='%236d431a' stroke-width='2'/%3E%3Cpath d='M91 51H74q-11 0-11 10t11 10h17Z' fill='%23170d20' stroke='url(%23g)' stroke-width='4'/%3E%3Ccircle cx='75' cy='61' r='4' fill='%23ffe388'/%3E%3C/svg%3E") center / contain no-repeat !important;
    filter: drop-shadow(0 3px 2px #08000b) !important;
    pointer-events: none !important;
  }
  body[data-page="home"] #customer-wallet-modal .customer-wallet-total small {
    max-width: 100% !important;
    color: var(--wallet-ink) !important;
    font: 700 clamp(12px, 3.375vw, 15.75px)/1.2 "Times New Roman", Georgia, serif !important;
    text-shadow: none !important;
  }
  body[data-page="home"] #customer-wallet-modal #customer-wallet-modal-total {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    color: var(--wallet-green) !important;
    background: none !important;
    -webkit-text-fill-color: var(--wallet-green) !important;
    font: 700 clamp(30px, 7.5vw, 37.5px)/1.05 "Times New Roman", Georgia, serif !important;
    font-variant-numeric: lining-nums tabular-nums !important;
    letter-spacing: -.02em !important;
    text-shadow: 0 1px 1px #062316 !important;
    filter: none !important;
  }
  body[data-page="home"] #customer-wallet-modal #customer-wallet-modal-count {
    color: #e5c8ef !important;
    font: 400 clamp(11px, 2.7vw, 13.5px)/1.3 "Times New Roman", Georgia, serif !important;
    text-shadow: none !important;
  }
  body[data-page="home"] #customer-welcome-credit-disclosure { order: 2 !important; margin: 0 !important; }
  body[data-page="home"] #customer-welcome-credit-disclosure > summary,
  body[data-page="home"] #customer-wallet-modal #customer-wallet-guide {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: clamp(29px, 7.125vw, 35px) !important;
    margin: 0 !important;
    padding: 5px 10px !important;
    box-sizing: border-box !important;
    border: 1px solid #76508b !important;
    border-radius: 11px !important;
    background: linear-gradient(125deg, #2c093c, #1c042a) !important;
    color: var(--wallet-ink) !important;
    -webkit-text-fill-color: var(--wallet-ink) !important;
    box-shadow: inset 0 1px rgba(255,255,255,.04), 0 3px 3px #0c0112 !important;
    font: 700 clamp(12px, 2.7vw, 12.75px)/1.25 "Times New Roman", Georgia, serif !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    text-shadow: none !important;
    list-style: none !important;
  }
  body[data-page="home"] #customer-welcome-credit-disclosure > summary::-webkit-details-marker { display: none !important; }
  body[data-page="home"] #customer-welcome-credit-disclosure > summary::before {
    content: "" !important;
    display: block !important;
    width: 18px !important;
    height: 19px !important;
    flex: 0 0 18px !important;
    background: var(--wallet-gold) !important;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 36'%3E%3Cpath d='M2 13h12v7H2zM18 13h12v7H18zM4 22h10v13H4zM18 22h10v13H18zM15 12h2v24h-2z'/%3E%3Cpath d='M16 12C4 12 4 1 10 2c5 0 6 10 6 10Zm0 0C28 12 28 1 22 2c-5 0-6 10-6 10Z' fill='none' stroke='black' stroke-width='2.4'/%3E%3C/svg%3E") center / contain no-repeat !important;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 36'%3E%3Cpath d='M2 13h12v7H2zM18 13h12v7H18zM4 22h10v13H4zM18 22h10v13H18zM15 12h2v24h-2z'/%3E%3Cpath d='M16 12C4 12 4 1 10 2c5 0 6 10 6 10Zm0 0C28 12 28 1 22 2c-5 0-6 10-6 10Z' fill='none' stroke='black' stroke-width='2.4'/%3E%3C/svg%3E") center / contain no-repeat !important;
  }
  body[data-page="home"] #customer-welcome-credit-disclosure > summary > span { font: inherit !important; }
  body[data-page="home"] #customer-welcome-credit-disclosure > summary > small { display: none !important; }
  body[data-page="home"] #customer-welcome-credit-disclosure > summary::after,
  body[data-page="home"] #customer-wallet-guide::after {
    content: "" !important;
    position: absolute !important;
    right: 12px !important;
    top: calc(50% - 4px) !important;
    width: 8px !important;
    height: 8px !important;
    border: solid #f6ddff !important;
    border-width: 0 2px 2px 0 !important;
    background: none !important;
    transform: rotate(45deg) !important;
  }
  body[data-page="home"] #customer-welcome-credit-disclosure[open] > summary::after { transform: rotate(225deg) !important; top: calc(50% - 2px) !important; }
  body[data-page="home"] #customer-wallet-modal #customer-wallet-guide { order: 3 !important; min-height: clamp(27px, 6.75vw, 33px) !important; }
  body[data-page="home"] #customer-wallet-guide::before { content: none !important; display: none !important; }
  body[data-page="home"] #customer-wallet-guide::after { transform: rotate(-45deg) !important; }
  body[data-page="home"] #customer-wallet-guide > span {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 18px !important;
    font-size: 0 !important;
    background: var(--wallet-gold) !important;
    mask: var(--wallet-book) center / contain no-repeat !important;
    -webkit-mask: var(--wallet-book) center / contain no-repeat !important;
  }
  body[data-page="home"] #customer-wallet-modal :is(#customer-wallet-add-balance, #customer-wallet-share, #customer-wallet-share-confirm, #customer-wallet-share-cancel) {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 17px !important;
    width: 100% !important;
    min-height: clamp(49px, 12.6vw, 61px) !important;
    margin: 0 !important;
    padding: 10px 14px !important;
    border: 1px solid #39de87 !important;
    border-radius: 11px !important;
    background: linear-gradient(178deg, #0ac575 0, #009654 24%, #005331 76%, #007a43) !important;
    color: #eeffe9 !important;
    -webkit-text-fill-color: #eeffe9 !important;
    font: 700 clamp(18px, 4.8vw, 25px)/1.2 "Times New Roman", Georgia, serif !important;
    text-shadow: 0 2px 2px #003522 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    --tactile-rest-shadow: inset 0 1px 2px #baffd266, inset 0 -2px 4px #00291c99, 0 3px 4px #09010e99 !important;
    --tactile-pressed-shadow: inset 0 3px 8px #001e1b88, 0 1px 1px #07010b !important;
    box-shadow: var(--tactile-current-shadow, var(--tactile-rest-shadow)) !important;
  }
  body[data-page="home"] #customer-wallet-add-balance { order: 4 !important; }
  body[data-page="home"] #customer-wallet-modal :is(#customer-wallet-add-balance, #customer-wallet-share) {
    min-height: clamp(33px, 8.25vw, 40.5px) !important;
    padding: 6px 10px !important;
    gap: 10px !important;
    font-size: clamp(12px, 3.15vw, 16.5px) !important;
  }
  body[data-page="home"] #customer-wallet-add-balance::before {
    content: "+" !important;
    display: block !important;
    flex: 0 0 20px !important;
    width: 20px !important;
    height: 22px !important;
    background: none !important;
    mask: none !important;
    -webkit-mask: none !important;
    font: 500 30px/.65 Arial, sans-serif !important;
    color: #d1ffc8 !important;
  }
  body[data-page="home"] #customer-wallet-modal #customer-wallet-share {
    order: 5 !important;
    border-color: #47b5ff !important;
    background: linear-gradient(178deg, #1479dd, #084da8 40%, #032b78 80%, #07398d) !important;
    --tactile-rest-shadow: inset 0 1px 2px #b4e1ff66, inset 0 -2px 4px #00184799, 0 3px 4px #09010e99 !important;
  }
  body[data-page="home"] #customer-wallet-share::before,
  body[data-page="home"] #customer-wallet-share-confirm::before {
    content: "" !important;
    display: block !important;
    width: 27px !important;
    height: 29px !important;
    flex: 0 0 27px !important;
    background: currentColor !important;
    mask: var(--wallet-send) center / contain no-repeat !important;
    -webkit-mask: var(--wallet-send) center / contain no-repeat !important;
  }
  body[data-page="home"] #customer-wallet-share::before {
    width: 18px !important;
    height: 20px !important;
    flex-basis: 18px !important;
  }
  body[data-page="home"] #customer-wallet-modal > .customer-wallet-panel > h3 {
    order: 7 !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 11px !important;
    margin: 4px 0 0 !important;
    padding: 9px 3px 0 !important;
    color: var(--wallet-ink) !important;
    font: 700 clamp(14.25px, 3.75vw, 18px)/1.25 "Times New Roman", Georgia, serif !important;
    text-shadow: none !important;
    border-top: 1px solid #755334 !important;
  }
  body[data-page="home"] #customer-wallet-modal > .customer-wallet-panel > h3::before { content: none !important; display: none !important; }
  body[data-page="home"] #customer-wallet-modal > .customer-wallet-panel > h3::after {
    content: "" !important;
    order: -1 !important;
    width: 18px !important;
    height: 20px !important;
    background: var(--wallet-gold) !important;
    mask: var(--wallet-receipt) center / contain no-repeat !important;
    -webkit-mask: var(--wallet-receipt) center / contain no-repeat !important;
  }
  body[data-page="home"] #customer-wallet-history {
    order: 8 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-height: min(300px, 32dvh) !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-y: auto !important;
  }
  body[data-page="home"] #customer-wallet-history > p {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    min-height: clamp(92px, 24vw, 118px) !important;
    margin: 0 !important;
    padding: 11px 15px !important;
    border: 1px solid #613077 !important;
    border-radius: 12px !important;
    background: linear-gradient(130deg, #2b0a3d, #20052e) !important;
    color: #ebcdf5 !important;
    font: 400 clamp(12px, 3vw, 14.25px)/1.35 "Times New Roman", Georgia, serif !important;
    text-align: center !important;
  }
  body[data-page="home"] #customer-wallet-history > .customer-wallet-empty::before {
    content: "" !important;
    width: 23px !important;
    height: 26px !important;
    flex: 0 0 26px !important;
    background: #b774dd !important;
    border: 0 !important;
    border-radius: 0 !important;
    mask: var(--wallet-receipt) center / contain no-repeat !important;
    -webkit-mask: var(--wallet-receipt) center / contain no-repeat !important;
  }
  body[data-page="home"] #customer-wallet-history > .customer-wallet-empty::after {
    content: "Your wallet history will appear here\A once you make a transaction." !important;
    white-space: pre-line !important;
    color: #d2addf !important;
    font: 400 clamp(11px, 2.55vw, 12.75px)/1.4 "Times New Roman", Georgia, serif !important;
  }
  body[data-page="home"] #customer-wallet-history .customer-wallet-history-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(45px, 31%) !important;
    align-items: center !important;
    gap: 6px 9px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 9px !important;
    border: 1px solid #5b2d70 !important;
    border-radius: 10px !important;
    background: #240832 !important;
    box-shadow: none !important;
    color: var(--wallet-ink) !important;
  }
  body[data-page="home"] #customer-wallet-history .customer-wallet-history-row > div {
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
  }
  body[data-page="home"] #customer-wallet-history .customer-wallet-history-row strong {
    font: 600 12px/1.35 "Times New Roman", Georgia, serif !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
  }
  body[data-page="home"] #customer-wallet-history .customer-wallet-history-row small {
    font: 400 11px/1.4 "Times New Roman", Georgia, serif !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
  }
  body[data-page="home"] #customer-wallet-history .customer-wallet-history-type {
    max-width: 100% !important;
    width: fit-content !important;
    box-sizing: border-box !important;
    font: 600 9px/1.3 Arial, sans-serif !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
  body[data-page="home"] #customer-wallet-history .customer-wallet-history-row > span {
    min-width: 0 !important;
    max-width: 100% !important;
    color: #70f3a7 !important;
    -webkit-text-fill-color: #70f3a7 !important;
    font: 700 13px/1.3 "Times New Roman", Georgia, serif !important;
    font-variant-numeric: lining-nums tabular-nums !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    text-align: right !important;
  }
  body[data-page="home"] #customer-wallet-history .customer-wallet-history-row:has(> .wallet-history-requested-amount) {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body[data-page="home"] #customer-wallet-history .customer-wallet-history-row > .wallet-history-requested-amount {
    grid-column: 1 / -1 !important;
    font-size: 11px !important;
    text-align: left !important;
  }
  body[data-page="home"] #customer-wallet-message { order: 9 !important; min-height: 0 !important; margin: 0 !important; font: 400 11px/1.4 "Times New Roman", Georgia, serif !important; }
  body[data-page="home"] #customer-wallet-message:empty { display: none !important; }

  /* Share replaces the wallet choices while open, retaining the balance card.
     The existing controller still owns toggling and all submission state. */
  body[data-page="home"] #customer-wallet-modal .customer-wallet-panel:has(#customer-wallet-share-panel:not([hidden])) > :is(#customer-welcome-credit-disclosure, #customer-wallet-guide, #customer-wallet-add-balance, #customer-wallet-share, h3, #customer-wallet-history) { display: none !important; }
  body[data-page="home"] #customer-wallet-share-panel[hidden] { display: none !important; }
  body[data-page="home"] #customer-wallet-modal #customer-wallet-share-panel:not([hidden]) {
    order: 6 !important;
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 0 !important;
    margin: 5px 0 0 !important;
    padding: 12px 10px 0 !important;
    border: 1px solid #68347e !important;
    border-bottom: 0 !important;
    border-radius: 13px !important;
    background: linear-gradient(#320d49, #210731) !important;
    box-shadow: inset 0 1px rgba(255,255,255,.04) !important;
    color: var(--wallet-ink) !important;
  }
  body[data-page="home"] #customer-wallet-share-panel .customer-wallet-share-heading {
    grid-column: 1 / -1 !important;
    display: block !important;
    margin: 0 -10px 12px !important;
    padding: 0 10px 11px !important;
    border-bottom: 1px solid #542569 !important;
  }
  body[data-page="home"] #customer-wallet-share-panel .customer-wallet-share-heading small,
  body[data-page="home"] #customer-wallet-share-panel .customer-wallet-share-heading > span { display: none !important; }
  body[data-page="home"] #customer-wallet-share-panel .customer-wallet-share-heading h3 {
    margin: 0 !important;
    font: 700 clamp(17.25px, 4.5vw, 21.75px)/1.2 "Times New Roman", Georgia, serif !important;
    color: var(--wallet-ink) !important;
    text-align: left !important;
    text-shadow: none !important;
  }
  body[data-page="home"] #customer-wallet-share-panel > label {
    grid-column: 1 / -1 !important;
    display: block !important;
    margin: 0 0 13px !important;
    padding: 0 !important;
    color: var(--wallet-ink) !important;
    font: 700 clamp(12.75px, 3.225vw, 15px)/1.3 "Times New Roman", Georgia, serif !important;
  }
  body[data-page="home"] #customer-wallet-modal :is(#customer-wallet-share-member, #customer-wallet-share-amount) {
    display: block !important;
    width: 100% !important;
    min-height: 38px !important;
    margin: 5px 0 0 !important;
    padding: 7px 10px 7px 38px !important;
    box-sizing: border-box !important;
    border: 1px solid #9a60ae !important;
    border-radius: 9px !important;
    background-color: #092126 !important;
    background-image: linear-gradient(110deg, #101d2a, #062024) !important;
    color: #d1a1ec !important;
    -webkit-text-fill-color: #d1a1ec !important;
    /* Keep editable text at 16px so compact fields do not zoom on iOS focus. */
    font: 400 16px/1.25 "Times New Roman", Georgia, serif !important;
    text-shadow: none !important;
    box-shadow: inset 0 2px 5px #0004 !important;
    color-scheme: dark !important;
  }
  body[data-page="home"] #customer-wallet-share-panel > label:has(#customer-wallet-share-member) { position: relative !important; }
  body[data-page="home"] #customer-wallet-share-panel > label:has(#customer-wallet-share-member)::after {
    content: "" !important;
    position: absolute !important;
    left: 11px !important;
    bottom: 9px !important;
    width: 20px !important;
    height: 20px !important;
    background: #c38ce9 !important;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Ccircle cx='10' cy='7' r='5'/%3E%3Cpath d='M1 26v-5a9 9 0 0 1 18 0v5ZM20 4a4 4 0 0 1 0 8c-1 0-2 0-3-1a9 9 0 0 0 0-6c1-1 2-1 3-1Zm1 12c5 0 7 3 7 7v3h-6v-5c0-2 0-3-1-5Z'/%3E%3C/svg%3E") center / contain no-repeat !important;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Ccircle cx='10' cy='7' r='5'/%3E%3Cpath d='M1 26v-5a9 9 0 0 1 18 0v5ZM20 4a4 4 0 0 1 0 8c-1 0-2 0-3-1a9 9 0 0 0 0-6c1-1 2-1 3-1Zm1 12c5 0 7 3 7 7v3h-6v-5c0-2 0-3-1-5Z'/%3E%3C/svg%3E") center / contain no-repeat !important;
    pointer-events: none !important;
  }
  body[data-page="home"] #customer-wallet-share-member { padding-right: 32px !important; }
  body[data-page="home"] #customer-wallet-share-member option { background: #20112d !important; color: #f4e3ff !important; }
  body[data-page="home"] #customer-wallet-share-panel .customer-wallet-share-amount-field { grid-row: 3 !important; position: relative !important; }
  body[data-page="home"] #customer-wallet-modal #customer-wallet-share-amount {
    border-color: #31d68b !important;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='%23ffe58b' stroke='%234b3719' stroke-width='.8'%3E%3Cellipse cx='17' cy='6' rx='9' ry='4'/%3E%3Cpath d='M8 6v5c0 5 18 5 18 0V6c0 5-18 5-18 0ZM8 12v5c0 5 18 5 18 0v-5c0 5-18 5-18 0Z'/%3E%3Cellipse cx='9' cy='15' rx='8' ry='3.6'/%3E%3Cpath d='M1 15v5c0 4 16 4 16 0v-5c0 4-16 4-16 0ZM1 21v4c0 4 16 4 16 0v-4c0 4-16 4-16 0Z'/%3E%3C/svg%3E") 10px center / 20px 20px no-repeat, linear-gradient(110deg, #00392b, #002b25) !important;
    color: #9bf5bc !important;
    -webkit-text-fill-color: #9bf5bc !important;
    font: 700 clamp(17.25px, 4.5vw, 21px)/1.2 "Times New Roman", Georgia, serif !important;
    font-variant-numeric: lining-nums tabular-nums !important;
    appearance: textfield !important;
    -moz-appearance: textfield !important;
  }
  body[data-page="home"] #customer-wallet-share-amount::placeholder { color: #9bf5bc !important; -webkit-text-fill-color: #9bf5bc !important; opacity: 1 !important; }
  body[data-page="home"] #customer-wallet-share-amount::-webkit-inner-spin-button,
  body[data-page="home"] #customer-wallet-share-amount::-webkit-outer-spin-button { appearance: none !important; -webkit-appearance: none !important; margin: 0 !important; }
  body[data-page="home"] #customer-wallet-modal :is(#customer-wallet-share-member, #customer-wallet-share-amount):focus { outline: none !important; box-shadow: inset 0 2px 5px #0004 !important; }
  body[data-page="home"] #customer-wallet-modal :is(#customer-wallet-share-member, #customer-wallet-share-amount):focus-visible { outline: none !important; }
  body[data-page="home"] #customer-wallet-modal[data-wallet-keyboard-focus="true"] :is(#customer-wallet-share-member, #customer-wallet-share-amount):focus-visible { outline: 2px solid #e9c77e !important; outline-offset: 3px !important; }
  body[data-page="home"] #customer-wallet-modal #customer-wallet-share-available {
    grid-row: 3 !important;
    grid-column: 2 !important;
    z-index: 1 !important;
    justify-self: end !important;
    align-self: start !important;
    margin: 0 !important;
    color: #e5c7ef !important;
    font: 400 clamp(11px, 2.625vw, 12.75px)/1.5 "Times New Roman", Georgia, serif !important;
    pointer-events: none !important;
  }
  body[data-page="home"] #customer-wallet-share-available .royal-wallet-available-value { color: #3cf28f !important; font-weight: 700 !important; }
  body[data-page="home"] #customer-wallet-share-panel .customer-wallet-share-help {
    grid-column: 1 / -1 !important;
    position: relative !important;
    min-height: 20px !important;
    margin: 0 0 14px !important;
    padding: 2px 0 0 26px !important;
    color: #ebd4f3 !important;
    font: 400 clamp(11px, 2.775vw, 13.5px)/1.35 "Times New Roman", Georgia, serif !important;
  }
  body[data-page="home"] #customer-wallet-share-panel .customer-wallet-share-help::before {
    content: "i" !important;
    position: absolute !important;
    left: 0 !important;
    top: 1px !important;
    display: grid !important;
    place-items: center !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    background: linear-gradient(#d8a5f4, #b970df) !important;
    color: #380c4b !important;
    font: 700 14px/1 "Times New Roman", serif !important;
  }
  body[data-page="home"] #customer-wallet-share-panel .customer-wallet-share-actions {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: 1fr 1.6fr !important;
    gap: 13px !important;
    margin: 0 -10px !important;
    padding: 14px 0 0 !important;
    background: #1b052b !important;
    border-top: 1px solid #68347e !important;
  }
  body[data-page="home"] #customer-wallet-share-panel #customer-wallet-share-cancel {
    order: -1 !important;
    border-color: #8a7399 !important;
    background: linear-gradient(160deg, #55405f, #30163e 52%, #21102c) !important;
    color: #fff5ff !important;
    -webkit-text-fill-color: #fff5ff !important;
    font-size: clamp(12px, 3.15vw, 15px) !important;
    padding: 6px 9px !important;
    --tactile-rest-shadow: inset 0 1px 1px #ffffff26, inset 0 -2px 3px #11031e99, 0 3px 5px #09010b !important;
  }
  body[data-page="home"] #customer-wallet-share-panel #customer-wallet-share-confirm { font-size: clamp(17px, 4.7vw, 23px) !important; gap: 12px !important; }
  body[data-page="home"] #customer-wallet-share-panel #customer-wallet-share-confirm:not(:disabled):not([aria-disabled="true"]) {
    --tactile-rest-shadow: inset 0 1px 2px #caffd477, inset 0 -2px 4px #00291c88, 0 3px 5px #09010e, 0 0 9px #21e98026 !important;
  }
  body[data-page="home"] #customer-wallet-share-panel #customer-wallet-share-confirm:disabled {
    border-color: #267c53 !important;
    background: linear-gradient(150deg, #174e3a, #073224 78%) !important;
    color: #83a997 !important;
    -webkit-text-fill-color: #83a997 !important;
    box-shadow: inset 0 1px #7fb59b14, 0 2px 3px #08010c !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  body[data-page="home"] #customer-wallet-share-message {
    grid-column: 1 / -1 !important;
    margin: 10px 0 0 !important;
    min-height: 0 !important;
    color: #e6c3f2 !important;
    font: 400 11px/1.4 "Times New Roman", Georgia, serif !important;
  }
  body[data-page="home"] #customer-wallet-share-message:empty { display: none !important; }
  body[data-page="home"] #customer-wallet-share-message.error { color: #ffb6c9 !important; }
  body[data-page="home"] #customer-wallet-share-message.success { color: #7af2ad !important; }
  body[data-page="home"] #customer-wallet-modal .customer-welcome-credit { margin-top: 7px !important; padding: 10px !important; gap: 6px !important; border: 1px solid #65317a !important; background: #260a38 !important; box-shadow: none !important; }
  body[data-page="home"] #customer-wallet-modal .customer-welcome-credit-heading h3 { color: var(--wallet-ink) !important; font: 700 14px/1.2 "Times New Roman", Georgia, serif !important; }
  body[data-page="home"] #customer-wallet-modal .customer-welcome-credit-heading > strong { color: var(--wallet-green) !important; font-size: 19px !important; text-shadow: none !important; }
  body[data-page="home"] #customer-wallet-modal .customer-welcome-credit > p { color: var(--wallet-muted) !important; font: 400 11px/1.4 "Times New Roman", Georgia, serif !important; }
  body[data-page="home"] #customer-wallet-modal .customer-welcome-credit > label { color: var(--wallet-ink) !important; font: 700 11px/1.3 "Times New Roman", Georgia, serif !important; }
  body[data-page="home"] #customer-wallet-modal #customer-welcome-credit-code { align-self: center !important; min-height: 35px !important; padding: 7px 10px !important; border: 1px solid #875299 !important; border-radius: 7px !important; background: linear-gradient(120deg, #230833, #190425) !important; color: #fff3ff !important; font: 400 16px/1.2 "Times New Roman", Georgia, serif !important; letter-spacing: .02em !important; }

  @media (max-width: 359px) {
    body[data-page="home"] #customer-wallet-modal > .customer-wallet-panel { padding-inline: 11px !important; gap: 8px !important; }
    body[data-page="home"] #customer-wallet-title { margin-bottom: 4px !important; }
    body[data-page="home"] #customer-wallet-modal .customer-wallet-total { min-height: 94px !important; padding-left: 41% !important; }
    body[data-page="home"] #customer-wallet-modal .customer-wallet-total small { font-size: 12px !important; }
    body[data-page="home"] #customer-welcome-credit-disclosure > summary { gap: 8px !important; padding-inline: 8px !important; }
    body[data-page="home"] #customer-welcome-credit-disclosure > summary > span { font-size: 12px !important; }
    body[data-page="home"] #customer-wallet-share-panel .customer-wallet-share-actions { gap: 9px !important; }
    body[data-page="home"] #customer-wallet-share-confirm::before { width: 23px !important; flex-basis: 23px !important; }
  }
}
