/* Shared popup language, adapted from AgentAlarmClock web/box.css remote-picker-dialog. */
:is(#billing-v1-preview,body) {--popup-card:#FFFDF8;--popup-ink:#5C3A2E;--popup-line:#D9C4A9;--popup-selected:#F7E0D3;}
:is(#billing-v1-preview,body) dialog:not(.fullscreen):not(.history-detail-screen):not(#billing-dialog-review) {background:var(--popup-card);border:1px solid color-mix(in srgb,var(--popup-ink) 80%,var(--popup-card));border-radius:14px;box-shadow:0 8px 20px color-mix(in srgb,var(--popup-ink) 18%,transparent);}
:is(#billing-v1-preview,body) dialog::backdrop {background:color-mix(in srgb,var(--popup-ink) 22%,transparent);}
:is(#billing-v1-preview,body) dialog:not(.fullscreen):not(.history-detail-screen):not(#billing-dialog-review) :is(.dialog-heading,.dialog-header) {position:relative;min-height:36px;padding:0 46px 0 0;margin:0 0 12px;background:transparent;border:0;}
:is(#billing-v1-preview,body) dialog:not(.fullscreen):not(.history-detail-screen):not(#billing-dialog-review) :is(.dialog-heading,.dialog-header) :is(h2,h3) {font-size:14px;line-height:1.5;}
:is(#billing-v1-preview,body) dialog:not(.fullscreen):not(.history-detail-screen):not(#billing-dialog-review) :is(.dialog-close,.close-button) {position:absolute;top:0;right:0;min-width:36px;min-height:36px;padding:4px;border:0;background:transparent;box-shadow:none;font-size:21px;}
:is(#billing-v1-preview,body) :is(.dialog-header,.review-header) {background:var(--popup-card);}
:is(#billing-v1-preview,body) dialog.billing-choice-dialog {position:fixed;inset:auto;margin:0;width:280px;max-width:none;max-height:calc(100dvh - 24px);padding:12px;overflow:hidden;color:var(--popup-ink);font:14px/1.5 system-ui,-apple-system,'PingFang SC','Microsoft YaHei',sans-serif;box-sizing:border-box;}
:is(#billing-v1-preview,body) dialog.billing-choice-dialog[open] {display:flex;flex-direction:column;}
:is(#billing-v1-preview,body) .billing-choice-title {display:flex;align-items:center;flex:none;min-height:36px;margin:0 0 6px;padding:0 60px 0 0;font-size:14px;font-weight:700;overflow-wrap:anywhere;}
:is(#billing-v1-preview,body) .billing-choice-close {position:absolute;right:12px;top:12px;min-height:36px;border:0;background:transparent;box-shadow:none;padding:4px 6px;color:var(--popup-ink);font-size:14px;}
:is(#billing-v1-preview,body) .billing-choice-list {overflow:auto;overscroll-behavior:contain;min-height:0;flex:1;}
:is(#billing-v1-preview,body) .billing-choice-item {display:block;flex:none;position:relative;width:100%;min-height:44px;padding:8px 10px;border:0;border-bottom:1px solid var(--popup-line);border-radius:0;box-shadow:none;background:transparent;text-align:left;font:inherit;color:var(--popup-ink);overflow-wrap:anywhere;white-space:normal;cursor:pointer;}
:is(#billing-v1-preview,body) .billing-choice-item:last-child {border-bottom:0;}
:is(#billing-v1-preview,body) .billing-choice-item[aria-pressed=true] {background:var(--popup-selected);font-weight:700;}
:is(#billing-v1-preview,body) .billing-choice-item:focus-visible {outline:2px solid #A04535;outline-offset:-3px;}
:is(#billing-v1-preview,body) .billing-choice-item:disabled {opacity:.45;cursor:default;}
:is(#billing-v1-preview,body) select {cursor:pointer;}

/* Search is opt-in for the historical import customer field. */
:is(#billing-v1-preview,body) .billing-choice-search {flex:none;margin:0 0 8px;}
:is(#billing-v1-preview,body) .billing-choice-search[hidden],:is(#billing-v1-preview,body) .billing-choice-item[hidden],:is(#billing-v1-preview,body) .billing-choice-empty[hidden] {display:none;}
:is(#billing-v1-preview,body) .billing-choice-search input {box-sizing:border-box;width:100%;min-height:42px;padding:8px 10px;border:1px solid var(--popup-line);border-radius:8px;background:#fff;color:var(--popup-ink);font:16px/1.5 system-ui,-apple-system,'PingFang SC','Microsoft YaHei',sans-serif;}
:is(#billing-v1-preview,body) .billing-choice-search input:focus-visible {outline:2px solid #A04535;outline-offset:1px;}
:is(#billing-v1-preview,body) .billing-choice-feedback {margin:6px 0 0;color:#80634F;font-size:12px;line-height:1.5;}
:is(#billing-v1-preview,body) .billing-choice-empty {margin:0;padding:12px 6px;color:#80634F;font-size:14px;}
