// (C) 2025 GoodData Corporation

.gd-ui-kit-pagination-button {
    // Circular shape
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: var(--gd-transition-all);

    // Default state colors
    --gd-icon-fill-color: var(--gd-palette-complementary-7);
    background-color: var(--gd-palette-complementary-2);

    &:disabled {
        cursor: default;
        opacity: 0.5;
    }

    &:not(:disabled) {
        &:hover,
        &:focus-visible,
        &:active {
            --gd-icon-fill-color: var(--gd-palette-complementary-0);
            background-color: var(--gd-palette-complementary-5);
        }

        &:focus-visible {
            outline: 2px solid var(--gd-palette-primary-base);
            outline-offset: 1px;
        }
    }

    &--isActive {
        --gd-icon-fill-color: var(--gd-palette-complementary-0);
        background-color: var(--gd-palette-complementary-5);
    }

    /**
     * Size variants
     */
    &--size {
        &-small {
            width: 22px;
            height: 22px;
        }

        &-large {
            width: 32px;
            height: 32px;
        }
    }
}
