/* A separate background layer keeps labels, icons, borders and focus rings sharp. */
@property --pv-sheen-at {
    syntax: "<percentage>";
    inherits: false;
    initial-value: -25%;
}

@media screen and (prefers-reduced-motion: no-preference) and (forced-colors: none) {
    @layer pitvu-button-feedback {
        [data-pv-sheen], .pitvu-google-mount {
            --pv-sheen-band: linear-gradient(108deg,
                transparent calc(var(--pv-sheen-at) - 18%),
                color-mix(in srgb, currentColor 8%, transparent) calc(var(--pv-sheen-at) - 7%),
                rgb(255 255 255 / 22%) var(--pv-sheen-at),
                color-mix(in srgb, currentColor 10%, transparent) calc(var(--pv-sheen-at) + 4%),
                transparent calc(var(--pv-sheen-at) + 17%));
        }

        /* Some themes use important background shorthands. Keep all their original layers. */
        [data-pv-sheen]:not(:disabled, [aria-disabled="true"]) {
            background-image: var(--pv-sheen-band), var(--pv-rest-image, none) !important;
            background-size: 100% 100%, var(--pv-rest-size, auto) !important;
            background-position: center, var(--pv-rest-position, center) !important;
            background-repeat: no-repeat, var(--pv-rest-repeat, repeat) !important;
            background-origin: padding-box, var(--pv-rest-origin, padding-box) !important;
            background-clip: padding-box, var(--pv-rest-clip, border-box) !important;
            background-attachment: scroll, var(--pv-rest-attachment, scroll) !important;
            background-blend-mode: normal, var(--pv-rest-blend-mode, normal) !important;
        }
    }

    /* The account chooser owns its iframe. Paint on the site's noninteractive mount. */
    .pitvu-google-mount:not([hidden]) { position: relative; }
    @media (hover: hover) and (pointer: fine) {
        .pitvu-google-slot:not([aria-busy="true"]) .pitvu-google-mount:not([hidden]):hover::after {
            content: "";
            position: absolute;
            inset: 0;
            z-index: 1;
            pointer-events: none;
            border-radius: inherit;
            color: #37414a;
            background-image: linear-gradient(108deg,
                transparent calc(var(--pv-sheen-at) - 16%),
                rgb(53 65 74 / 8%) calc(var(--pv-sheen-at) - 6%),
                rgb(255 255 255 / 18%) var(--pv-sheen-at),
                transparent calc(var(--pv-sheen-at) + 14%));
            animation: pv-google-button-sheen 540ms cubic-bezier(.22,.55,.38,1) 1;
        }
    }
}

@keyframes pv-google-button-sheen {
    from { --pv-sheen-at: -25%; }
    to { --pv-sheen-at: 125%; }
}
