/* Wallet verify popover — gated nowhere; only renders when svc.state.isOpen. */
/* RTL inherited from page. Desktop: centered modal. Mobile: popover anchored */
/* to the Google Pay button via inline svc.state.panelStyle.                  */

.wv-root {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    pointer-events: none;
}

.wv-root .wv-backdrop,
.wv-root .wv-panel {
    pointer-events: auto;
}

.wv-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

/* Desktop: centered modal */
.wv-is-desktop .wv-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 440px;
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    overflow: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
    padding: 20px 24px 24px;
    box-sizing: border-box;
}

/* Mobile: viewport-centered (horizontal + vertical) — same behavior as desktop
   but fills near the full width. .wv-root is position:fixed, so the 50% is
   relative to the viewport. */
.wv-is-mobile .wv-panel {
    position: absolute;
    top: 50%;
    left: 12px;
    right: 12px;
    transform: translateY(-50%);
    max-height: calc(100vh - 24px);
    overflow: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
    padding: 16px 18px 18px;
    box-sizing: border-box;
}

/* Title / subtitle / labels mirror the checkout page: font inherits 'Open Sans Hebrew'
   from body, colors match .ZCreditInput text (#303030) and placeholder (#767676).
   Inputs reuse .ZCreditInput and the Pay button reuses .SubmitButton via the template. */

.wv-title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    color: #303030;
}

.wv-card-line {
    display: inline-block;
    background: #f5f5f5;
    border-radius: 4px;
    padding: 2px 10px;
    font-size: 12px;
    color: #303030;
    margin-bottom: 10px;
}

.wv-subtitle {
    margin: 0 0 14px;
    font-size: 13px;
    color: #767676;
}

.wv-field {
    margin-bottom: 12px;
}

.wv-field > label {
    display: block;
    font-size: 13px;
    color: #303030;
    margin-bottom: 4px;
}

/* Invalid state on a ZCreditInput-styled input — matches .ZCreditInput--invalid visual. */
.wv-field input.wv-invalid {
    box-shadow: 0 0 0 1px #d0021b, 0 2px 4px 0 rgba(0, 0, 0, .07), 0 1px 1.5px 0 rgba(0, 0, 0, .05);
}

.wv-error {
    display: block;
    color: #d0021b;
    font-size: 12px;
    margin-top: 4px;
}

/* Pay button reuses .SubmitButton; just add top-margin and disabled styling. */
.wv-pay {
    margin-top: 14px;
}

.wv-pay:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.wv-cancel {
    display: block;
    width: 100%;
    background: transparent;
    color: #767676;
    border: none;
    padding: 10px;
    font-size: 13px;
    cursor: pointer;
    margin-top: 8px;
}

.wv-cancel:hover {
    color: #303030;
}
