﻿/* Make <a> and <button> with this class look the same everywhere */
.gsi-material-button {
    all: unset; /* nuke UA styles (link/btn differences) */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 40px;
    padding: 0 16px;
    border: 1px solid #747775;
    border-radius: 4px;
    background: #fff;
    color: #1f1f1f;
    text-decoration: none; /* remove link underline */
    cursor: pointer;
    font: 500 14px/24px Roboto,"Segoe UI",system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif;
    box-shadow: 0 1px 1px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.08);
}

    /* Hover / active / focus */
    .gsi-material-button:hover {
        background: #f8fafd;
    }

    .gsi-material-button:active {
        background: #eef3fd;
    }

    .gsi-material-button:focus-visible {
        outline: 3px solid rgba(26,115,232,.4);
        outline-offset: 2px;
    }

    /* Disabled for both <a> (via aria-disabled) and <button> (via :disabled) */
    .gsi-material-button[aria-disabled="true"],
    .gsi-material-button:disabled {
        opacity: .65;
        cursor: not-allowed;
        pointer-events: none; /* also blocks <a> clicks */
        box-shadow: none;
    }

/* Inner layout */
.gsi-material-button-content-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.gsi-material-button-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
}

    .gsi-material-button-icon svg {
        width: 18px;
        height: 18px;
        display: block;
    }

.gsi-material-button-contents {
    white-space: nowrap;
}

/* Optional ripple-ish overlay element */
.gsi-material-button-state {
    display: none;
}

/* Dark theme */
@media (prefers-color-scheme: dark) {
    .gsi-material-button {
        background: #1f1f1f;
        color: #e8eaed;
        border-color: #3c4043;
    }

        .gsi-material-button:hover {
            background: #2b2f33;
        }
}
